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

16 lines
270 B
Kotlin
Vendored

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