Files
kotlin-fork/compiler/testData/codegen/box/properties/lateinit/simpleField.kt
T
2015-09-05 00:54:19 +03:00

16 lines
210 B
Kotlin
Vendored

class A {
private lateinit val str: String
init {
str = "OK"
}
public fun getMyStr(): String {
return str
}
}
fun box(): String {
val a = A()
return a.getMyStr()
}