Files
kotlin-fork/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInNestedLambda.kt
T
2019-11-19 11:00:09 +03:00

12 lines
209 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class Base(val callback: () -> String)
class Outer {
val ok = "OK"
inner class Inner : Base({ { ok }() })
}
fun box(): String =
Outer().Inner().callback()