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

12 lines
209 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class Foo(val x: () -> String)
open class Foo2(val foo: Foo)
class Outer {
val s = "OK"
inner class Inner : Foo2(Foo({ s }))
}
fun box() = Outer().Inner().foo.x()