Files
kotlin-fork/compiler/testData/codegen/bridges/propertyAccessorsWithoutBody.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

16 lines
211 B
Kotlin

open class A<T> {
open var x: T = "Fail" as T
get
}
class B : A<String>() {
override var x: String = "Fail"
set
}
fun box(): String {
val a: A<String> = B()
a.x = "OK"
return a.x
}