[FIR] Fix forgotten level changes during building CFG for !!

This commit is contained in:
Dmitriy Novozhilov
2022-06-20 12:09:53 +03:00
committed by teamcity
parent d835005647
commit ed8187109a
8 changed files with 304 additions and 1 deletions
@@ -1026,6 +1026,22 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
}
}
@Nested
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/cfa")
@TestDataPath("$PROJECT_ROOT")
public class Cfa {
@Test
public void testAllFilesPresentInCfa() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/cfa"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("initializationInTry.kt")
public void testInitializationInTry() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/cfa/initializationInTry.kt");
}
}
@Nested
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/cfg")
@TestDataPath("$PROJECT_ROOT")