Files
kotlin-fork/backend.native/tests/external/codegen/box/properties/accessToPrivateSetter.kt
T
2017-03-13 15:31:46 +03:00

17 lines
234 B
Kotlin

// 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"
}