Files
kotlin-fork/compiler/testData/codegen/box/bridges/substitutionInSuperClass/property.kt
T
2019-11-19 11:00:09 +03:00

17 lines
233 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class A<T>(val t: T) {
open val foo: T = t
}
open class B : A<String>("Fail")
class Z : B() {
override val foo = "OK"
}
fun box(): String {
val a: A<String> = Z()
return a.foo
}