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

21 lines
304 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
public class A {
fun setMyStr() {
str = "OK"
}
fun getMyStr(): String {
return str
}
private companion object {
private lateinit var str: String
}
}
fun box(): String {
val a = A()
a.setMyStr()
return a.getMyStr()
}