Files
kotlin-fork/compiler/testData/codegen/box/properties/accessToPrivateSetter.kt
T
2016-11-09 21:41:12 +03:00

17 lines
234 B
Kotlin
Vendored

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