Files
kotlin-fork/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInInlineLambda.kt
T

15 lines
252 B
Kotlin
Vendored

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