Files
kotlin-fork/compiler/testData/codegen/java8/compileKotlinAgainstKotlin/jvm8against6/simpleCallWithBigHierarchy.kt
T
2018-05-28 22:15:42 +02:00

27 lines
401 B
Kotlin
Vendored

// !API_VERSION: 1.3
// !JVM_DEFAULT_MODE: enable
// FILE: 1.kt
interface Test {
fun test(): String {
return "OK"
}
}
// FILE: 2.kt
// JVM_TARGET: 1.8
// WITH_RUNTIME
interface Test2 : Test {
@JvmDefault
override fun test(): String {
return super.test()
}
}
interface Test3 : Test2 {
}
class TestClass : Test3
fun box(): String {
return TestClass().test()
}