[FIR] Fix completion of synthetic call arguments

This commit is contained in:
Mikhail Glukhikh
2020-12-28 13:10:20 +03:00
parent b7a382f097
commit a6534c4653
7 changed files with 33 additions and 4 deletions
@@ -0,0 +1,17 @@
FILE: SpecialCallsWithLambdas.kt
public final fun foo(): R|kotlin/Unit| {
lval inv: R|() -> kotlin/Function0<kotlin/Unit>| = fun <anonymous>(): R|() -> kotlin/Unit| {
^ fun <anonymous>(): R|kotlin/Unit| {
^ Unit
}
}
!!
lval bar: R|() -> kotlin/Function0<kotlin/Unit>| = fun <anonymous>(): R|() -> kotlin/Unit| {
^ fun <anonymous>(): R|kotlin/Unit| {
^ Unit
}
}
}
@@ -0,0 +1,4 @@
fun foo() {
val inv = {{}}!!
val bar = {{}}
}