Revert "KT-8263: Conditional operators are not parsed correctly"

This reverts commit 85800b4f9f.
This commit is contained in:
Denis.Zharkov
2022-08-04 17:49:42 +02:00
parent 6be2483824
commit 2ae2a7e442
37 changed files with 222 additions and 4849 deletions
@@ -32143,28 +32143,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
}
}
@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")
@@ -32143,28 +32143,6 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
}
}
@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")