Files
kotlin-fork/compiler/testData/codegen/bridges/substitutionInSuperClassProperty.kt
T
Alexander Udalov e869568196 Generate bridges for property accessors
Use existing FunctionCodegen.generateBridgeIfNeeded() on property getters &
setters

 #KT-2920 Fixed
2012-10-09 16:36:24 +04:00

13 lines
171 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() = (Z() : A<String>).foo