mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
18 lines
241 B
Kotlin
Vendored
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"
|
|
} |