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

17 lines
303 B
Kotlin
Vendored

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