18 lines
249 B
Kotlin
Vendored
18 lines
249 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
var state: String = "Fail"
|
|
|
|
class A private constructor(x: String = "OK") {
|
|
init {
|
|
state = x
|
|
}
|
|
|
|
companion object {
|
|
fun foo() = A()
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
A.foo()
|
|
return state
|
|
}
|