[FIR] Fix compiler crash with incorrect argument in FirDanglingModifierList

KT-63508 Fixed
This commit is contained in:
Ivan Kochurkin
2023-11-21 23:30:53 +01:00
committed by Space Team
parent fc5239bdfd
commit a04deba7c7
8 changed files with 63 additions and 0 deletions
@@ -12518,6 +12518,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/exceptions"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("annotationWithWrongArgInDanglingModifierList.kt")
public void testAnnotationWithWrongArgInDanglingModifierList() throws Exception {
runTest("compiler/testData/diagnostics/tests/exceptions/annotationWithWrongArgInDanglingModifierList.kt");
}
@Test
@TestMetadata("expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.kt")
public void testExpectedSomeTypesOnBranchForWhenExpressionOfErroneousType() throws Exception {
@@ -12518,6 +12518,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/exceptions"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("annotationWithWrongArgInDanglingModifierList.kt")
public void testAnnotationWithWrongArgInDanglingModifierList() throws Exception {
runTest("compiler/testData/diagnostics/tests/exceptions/annotationWithWrongArgInDanglingModifierList.kt");
}
@Test
@TestMetadata("expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.kt")
public void testExpectedSomeTypesOnBranchForWhenExpressionOfErroneousType() throws Exception {