Files
kotlin-fork/compiler/testData/codegen/box/closures/captureInSuperConstructorCall/localFunctionCapturedInLambda.kt
T
Mikhael Bogdanov a7d706f693 Unmute jvm ir-tests
2018-08-09 16:30:32 +03:00

11 lines
181 B
Kotlin
Vendored

open class Base(val fn: () -> String)
fun box(): String {
val x = "O"
fun localFn() = x
class Local(y: String) : Base({ localFn() + y })
return Local("K").fn()
}