mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
17 lines
211 B
Kotlin
Vendored
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"
|
|
} |