fe13f39de9
Local declarations CFA: variable initialization information before them is now taken into account
16 lines
332 B
Kotlin
Vendored
16 lines
332 B
Kotlin
Vendored
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"
|
|
}
|