Files
kotlin-fork/compiler/testData/codegen/box/properties/kt1159.kt
T
Mikhail Glukhikh fe13f39de9 Use of uninitialized variables in lambdas / object literals / local functions is forbidden now #KT-4475 Fixed
Local declarations CFA: variable initialization information before them is now taken into account
2015-11-17 18:21:09 +03:00

20 lines
305 B
Kotlin
Vendored

public object RefreshQueue {
private val any = Any()
private val workerThread: Thread = Thread(object : Runnable {
override fun run() {
any.hashCode()
}
});
init {
workerThread.start()
}
}
fun box() : String {
RefreshQueue
return "OK"
}