Files
kotlin/compiler/testData/codegen/box/traits/genericMethod.kt
2019-11-19 11:00:09 +03:00

22 lines
316 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
interface A<T> {
val property : T
open fun a() : T {
return property
}
}
open class B : A<Any> {
override val property: Any = "fail"
}
open class C : B(), A<Any> {
override val property: Any = "OK"
}
fun box() : String {
return C().a() as String
}