mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
15 lines
308 B
Kotlin
Vendored
15 lines
308 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
fun box() : String {
|
|
var a = 1
|
|
|
|
(object: Runnable {
|
|
override public fun run() {
|
|
a = 2
|
|
}
|
|
}).run()
|
|
return if (a == 2) "OK" else "fail"
|
|
}
|