blob: 48544b52c83a324f389c359d0bbe9979c42fb57c [file]
// IGNORE_BACKEND_FIR: JVM_IR
package p
private class C(val y: Int) {
val initChild = { ->
object {
override fun toString(): String {
return "child" + y
}
}
}
}
fun box(): String {
val c = C(3).initChild
val x = c().toString()
return if (x == "child3") "OK" else x
}