e869568196
Use existing FunctionCodegen.generateBridgeIfNeeded() on property getters & setters #KT-2920 Fixed
16 lines
211 B
Kotlin
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
|
|
}
|