Files
kotlin-fork/compiler/testData/codegen/box/properties/lateinit/privateSetter.kt
T
2018-06-09 19:15:38 +03:00

14 lines
185 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
class My {
lateinit var x: String
private set
fun init() { x = "OK" }
}
fun box(): String {
val my = My()
my.init()
return my.x
}