[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 = {{}}
|
||||
}
|
||||
+6
@@ -4889,6 +4889,12 @@ public class FirDiagnosticTestGenerated extends AbstractFirDiagnosticTest {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/receiverResolutionInLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SpecialCallsWithLambdas.kt")
|
||||
public void testSpecialCallsWithLambdas() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/SpecialCallsWithLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TypesEligibleForSimpleVisit.kt")
|
||||
public void testTypesEligibleForSimpleVisit() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user