[FIR] Fix while's label, when condition has lambda

#KT-48116 Fixed
This commit is contained in:
Andrey Zinovyev
2021-08-10 16:28:40 +03:00
committed by TeamCityServer
parent 06001fc091
commit 1338675833
10 changed files with 77 additions and 4 deletions
@@ -6019,6 +6019,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/controlStructures"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("breakToLabel.kt")
public void testBreakToLabel() throws Exception {
runTest("compiler/testData/diagnostics/tests/controlStructures/breakToLabel.kt");
}
@Test
@TestMetadata("catchGenerics.kt")
public void testCatchGenerics() throws Exception {
@@ -6019,6 +6019,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/controlStructures"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("breakToLabel.kt")
public void testBreakToLabel() throws Exception {
runTest("compiler/testData/diagnostics/tests/controlStructures/breakToLabel.kt");
}
@Test
@TestMetadata("catchGenerics.kt")
public void testCatchGenerics() throws Exception {