Files
kotlin-fork/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambda.kt
T
2018-06-09 19:15:38 +03:00

11 lines
197 B
Kotlin
Vendored

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