Files
kotlin-fork/backend.native/tests/external/codegen/box/bridges/substitutionInSuperClass/property.kt
T
2017-03-13 15:31:46 +03:00

16 lines
203 B
Kotlin

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
}