Files
kotlin-fork/compiler/testData/codegen/box/classes/kt1157.kt
T
2018-08-09 14:22:46 +03:00

23 lines
341 B
Kotlin
Vendored

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