20 lines
279 B
Kotlin
Vendored
20 lines
279 B
Kotlin
Vendored
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()
|
|
} |