No such field error when set private property without backing field (analog of KT-2892)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user