Files
kotlin-fork/compiler/testData/codegen/box/properties/lateinit/accessor.kt
T
2019-11-19 11:00:09 +03:00

21 lines
309 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_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()
}