KT-8263: Conditional operators are not parsed correctly

This commit is contained in:
Iven Krall
2022-06-12 20:05:43 +02:00
committed by teamcity
parent 2053363def
commit ec8da2033c
37 changed files with 4847 additions and 218 deletions
@@ -32149,6 +32149,28 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/typeArguments")
@TestDataPath("$PROJECT_ROOT")
public class TypeArguments {
@Test
public void testAllFilesPresentInTypeArguments() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/typeArguments"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("allowTypeArgumentListLikeExpressions.kt")
public void testAllowTypeArgumentListLikeExpressions() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeArguments/allowTypeArgumentListLikeExpressions.kt");
}
@Test
@TestMetadata("forbidTypeArgumentListLikeExpressions.kt")
public void testForbidTypeArgumentListLikeExpressions() throws Exception {
runTest("compiler/testData/diagnostics/tests/typeArguments/forbidTypeArgumentListLikeExpressions.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/typeParameters")
@TestDataPath("$PROJECT_ROOT")