18 lines
210 B
Kotlin
Vendored
18 lines
210 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_RUNTIME
|
|
|
|
var result = "fail 1"
|
|
object Foo {
|
|
@JvmStatic
|
|
private val a = "OK"
|
|
|
|
fun foo() = run { result = a }
|
|
}
|
|
|
|
fun box(): String {
|
|
Foo.foo()
|
|
|
|
return result
|
|
}
|