19 lines
267 B
Kotlin
Vendored
19 lines
267 B
Kotlin
Vendored
var result = ""
|
|
|
|
class A {
|
|
|
|
companion object {
|
|
|
|
val prop = test()
|
|
|
|
fun test(): String {
|
|
result += "OK"
|
|
return result
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
if (A.prop != "OK") return "fail ${A.prop}"
|
|
return result
|
|
} |