blob: 964c7e1263668b9ae92d22f5a7172e507bb2d7dc [file] [log] [blame]
class P {
var x : Int = 0
private set
fun foo() {
({ x = 4 }).let { it() }
}
}
fun box() : String {
val p = P()
p.foo()
return if (p.x == 4) "OK" else "fail"
}