Files
kotlin-fork/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/kt14243.kt
T
2020-06-19 11:57:36 +02:00

25 lines
388 B
Kotlin
Vendored

// !JVM_DEFAULT_MODE: all-compatibility
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// WITH_RUNTIME
interface Z<T> {
fun test(p: T): T {
return p
}
}
@JvmDefaultWithoutCompatibility
open class ZImpl : Z<String>
class ZImpl2 : ZImpl() {
override fun test(p: String): String {
return super.test(p)
}
}
fun box(): String {
return ZImpl2().test("OK")
}