Files
kotlin-fork/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambdaInSubExpression.kt
T
Roman Artemev 8a871b3f0c Update tests
2018-08-31 15:34:18 +03:00

12 lines
205 B
Kotlin
Vendored

// IGNORE_BACKEND: 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()