Files
kotlin-fork/compiler/testData/codegen/box/classes/kt1157.kt
T
Alexander Udalov 6210e45fbc Minor, improve test case for KT-1157
Multithreaded version was not working correctly and was throwing NPEs in the
log sometimes
2014-05-29 21:07:34 +04:00

18 lines
271 B
Kotlin

public object SomeClass {
private val work = object : Runnable {
override fun run() {
foo()
}
}
private fun foo(): Unit {
}
public fun run(): Unit = work.run()
}
fun box(): String {
SomeClass.run()
return "OK"
}