Files
kotlin-fork/compiler/testData/codegen/box/classes/kt1120.kt
T
2016-02-20 15:19:29 +03:00

20 lines
498 B
Kotlin
Vendored

// Won't ever work with JS backend.
// TODO: Consider rewriting this test without using threads, since the issue is not about threads at all.
// TARGET_BACKEND: JVM
object RefreshQueue {
val any = Any()
val workerThread: Thread = Thread(object : Runnable {
override fun run() {
val a = any
val b = RefreshQueue.any
if (a != b) throw AssertionError()
}
})
}
fun box() : String {
RefreshQueue.workerThread.run()
return "OK"
}