Files
kotlin-fork/backend.native/tests/external/codegen/box/synchronized/longValue.kt
T
2017-03-13 15:31:46 +03:00

16 lines
303 B
Kotlin

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
fun box(): String {
var obj = "0" as java.lang.Object
val result = synchronized (obj) {
239L
}
if (result != 239L) return "Fail: $result"
return "OK"
}