KT-2331 fix: proper dealing with privite property setters
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user