Files
kotlin-fork/compiler/testData/codegen/box/super/kt14243_2.kt
T
2023-12-26 10:18:19 +00:00

22 lines
330 B
Kotlin
Vendored

// JVM_ABI_K1_K2_DIFF: KT-62781
interface Z<T> {
fun test(p: T): T {
return p
}
}
open class ZImpl : Z<String>
open class ZImpl2 : Z<String>, ZImpl()
class ZImpl3 : ZImpl2() {
override fun test(p: String): String {
return super.test(p)
}
}
fun box(): String {
return ZImpl3().test("OK")
}