Files
kotlin-fork/compiler/testData/codegen/java8/box/jvm8/defaults/superCall.kt
T
2018-04-03 19:18:09 +02:00

27 lines
377 B
Kotlin
Vendored

// !API_VERSION: 1.3
// JVM_TARGET: 1.8
// WITH_RUNTIME
interface Test {
@kotlin.annotations.JvmDefault
fun test(): String {
return "OK"
}
}
interface Test2 : Test {
@kotlin.annotations.JvmDefault
override fun test(): String {
return super.test()
}
}
class TestClass : Test2 {
}
fun box(): String {
return TestClass().test()
}