Files
kotlin-fork/compiler/testData/codegen/box/functions/localFunctions/kt2895.kt
T
2015-04-07 13:08:53 +03:00

16 lines
270 B
Kotlin
Vendored

fun outer() {
fun inner(i: Int) {
if (i > 0){
{
it: Int -> inner(0) // <- invocation of literal itself is generated instead
}.invoke(1)
}
}
inner(1)
}
fun box(): String {
outer()
return "OK"
}