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

15 lines
265 B
Kotlin
Vendored

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