mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
15 lines
223 B
Kotlin
Vendored
15 lines
223 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// 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"
|
|
}
|