Files
kotlin-fork/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambda2.kt
T
2018-06-28 12:26:41 +02:00

15 lines
270 B
Kotlin
Vendored

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