mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
20 lines
297 B
Kotlin
Vendored
20 lines
297 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
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
|
|
} |