[FIR] Fix completion of synthetic call arguments
This commit is contained in:
Vendored
+1
-1
@@ -75,7 +75,7 @@ FILE: RedundantExplicitTypeChecker.kt
|
||||
public final fun test(boolean: R|kotlin/Boolean|): R|kotlin/Unit| {
|
||||
lval expectedLong: R|kotlin/Long| = when () {
|
||||
R|<local>/boolean| -> {
|
||||
Int(42)
|
||||
Long(42)
|
||||
}
|
||||
else -> {
|
||||
^test Unit
|
||||
|
||||
Vendored
+17
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun foo() {
|
||||
val inv = {{}}!!
|
||||
val bar = {{}}
|
||||
}
|
||||
Reference in New Issue
Block a user