Files
kotlin/compiler/testData/codegen/box/closures/localFunctionInFunction.kt
2019-11-19 11:00:09 +03:00

15 lines
214 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
fun local():Int {
return 10;
}
class A {
fun test(): Int {
return local()
}
}
return if (A().test() == 10) "OK" else "fail"
}