Files
kotlin-fork/compiler/testData/codegen/java8/box/jvm8/defaults/kt14243.kt
T
Mikhael Bogdanov 08ff1de248 Update test data
2018-04-03 19:38:37 +02:00

24 lines
352 B
Kotlin
Vendored

// !API_VERSION: 1.3
// !ENABLE_JVM_DEFAULT
// JVM_TARGET: 1.8
// WITH_RUNTIME
interface Z<T> {
@JvmDefault
fun test(p: T): T {
return p
}
}
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")
}