Files
kotlin/compiler/testData/codegen/box/properties/privatePropertyWithoutBackingField.kt
2019-11-19 11:00:09 +03:00

18 lines
241 B
Kotlin
Vendored

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