mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
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
|
|
}
|