FIR: Fix builder inference case with independent calls inside lambda

This commit is contained in:
Denis.Zharkov
2021-01-29 18:51:20 +03:00
parent 29ac4cb9cc
commit e7669ef9d6
7 changed files with 82 additions and 16 deletions
@@ -31624,6 +31624,22 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/builderInference")
@TestDataPath("$PROJECT_ROOT")
public class BuilderInference extends AbstractFirDiagnosticTest {
@Test
public void testAllFilesPresentInBuilderInference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/builderInference"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("completeIrrelevantCalls.kt")
public void testCompleteIrrelevantCalls() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/builderInference/completeIrrelevantCalls.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/builtins")
@TestDataPath("$PROJECT_ROOT")