Files
kotlin-fork/compiler/testData/codegen/box/functions/localFunctions/kt2895.kt
T
2019-11-19 11:00:09 +03:00

17 lines
300 B
Kotlin
Vendored

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