Files
kotlin/compiler/testData/codegen/box/properties/privatePropertyWithoutBackingField.kt

17 lines
211 B
Kotlin
Vendored

class Test {
private var i : Int
get() = 1
set(i) {}
fun foo() {
fun f() {
i = 2
}
f()
}
}
fun box(): String {
Test().foo()
return "OK"
}