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

28 lines
359 B
Kotlin
Vendored

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