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

17 lines
296 B
Kotlin
Vendored

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