mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Properly map super calls in typeMapper
This commit is contained in:
24
compiler/testData/codegen/java8/box/jvm8/superCall.kt
vendored
Normal file
24
compiler/testData/codegen/java8/box/jvm8/superCall.kt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
|
||||
interface Test {
|
||||
fun test(): String {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
interface Test2 : Test {
|
||||
override fun test(): String {
|
||||
return super.test()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class TestClass : Test2 {
|
||||
|
||||
}
|
||||
|
||||
|
||||
fun box(): String {
|
||||
return TestClass().test()
|
||||
}
|
||||
Reference in New Issue
Block a user