7d59c7689c
Due to the direct invoke optimization, most callable reference tests were not generating callable references/lambdas.
16 lines
281 B
Kotlin
Vendored
16 lines
281 B
Kotlin
Vendored
fun outer() {
|
|
fun inner(i: Int) {
|
|
if (i > 0){
|
|
{
|
|
it: Int -> inner(0) // <- invocation of literal itself is generated instead
|
|
}.let { it.invoke(1) }
|
|
}
|
|
}
|
|
inner(1)
|
|
}
|
|
|
|
fun box(): String {
|
|
outer()
|
|
return "OK"
|
|
}
|