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

11 lines
210 B
Kotlin
Vendored

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