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

15 lines
191 B
Kotlin
Vendored

class P {
var x : Int = 0
private set
fun foo() {
({ x = 4 })()
}
}
fun box() : String {
val p = P()
p.foo()
return if (p.x == 4) "OK" else "fail"
}