KT-2331 fix: proper dealing with privite property setters

This commit is contained in:
Alex Tkachman
2012-08-04 08:10:38 +03:00
parent 3f2e1bc1ce
commit bcec8b7c36
4 changed files with 62 additions and 32 deletions
@@ -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"
}