FIR: Fix invalid INITIALIZER_TYPE_MISMATCH for suspend lambda

This commit is contained in:
Denis.Zharkov
2021-11-03 18:52:37 +03:00
committed by teamcity
parent 994040c91c
commit 65d7da122f
9 changed files with 41 additions and 4 deletions
@@ -6425,6 +6425,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/coroutines/suspendInvokeWithReceiver.kt");
}
@Test
@TestMetadata("suspendLambdaFromExpectedType.kt")
public void testSuspendLambdaFromExpectedType() throws Exception {
runTest("compiler/testData/diagnostics/tests/coroutines/suspendLambdaFromExpectedType.kt");
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/coroutines/callableReference")
@TestDataPath("$PROJECT_ROOT")