No such field error when set private property without backing field (analog of KT-2892)

This commit is contained in:
Natalia.Ukhorskaya
2013-04-24 16:36:53 +04:00
parent b484ce711f
commit 3297c0e9d3
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,17 @@
class Test {
private var i : Int
get() = 1
set(i) {}
fun foo() {
fun f() {
i = 2
}
f()
}
}
fun box(): String {
Test().foo()
return "OK"
}