mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
18 lines
259 B
Kotlin
Vendored
18 lines
259 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
class D {
|
|
var foo = 1
|
|
private set
|
|
|
|
fun foo() {
|
|
foo = 2
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
D().foo()
|
|
return "OK"
|
|
}
|