Files
kotlin-fork/compiler/testData/codegen/box/properties/kt49203_var.kt
T

20 lines
255 B
Kotlin
Vendored

class X {
var value = ""
operator fun plusAssign(data: String) {
value += data
}
}
abstract class A {
var x: X = X()
private set
}
class B : A()
fun box(): String {
val a = B()
a.x += "OK"
return a.x.value
}