Files
kotlin-fork/compiler/testData/codegen/java8/compileKotlinAgainstKotlin/jvm8against6/simpleCallWithBigHierarchy.kt
T
2018-04-03 19:18:09 +02:00

26 lines
391 B
Kotlin
Vendored

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