Files
kotlin-fork/compiler/testData/codegen/box/properties/kt2331.kt
T
2019-11-19 11:00:09 +03:00

16 lines
221 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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"
}