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

15 lines
210 B
Kotlin
Vendored

// IGNORE_BACKEND: 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"
}