Files
kotlin-fork/compiler/testData/codegen/box/objects/kt1737.kt
T
2023-06-23 14:15:48 +00:00

17 lines
321 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
fun box(): String {
return object {
fun foo(): String {
val f = {}
object : Runnable {
public override fun run() {
f()
}
}
return "OK"
}
}.foo()
}