LT: make where clause with errors parsing same as with PSI

- do not fail on the missing terms
- propagate invalid name to avoid reporting dangling constraints

#KT-58455 fixed
This commit is contained in:
Ilya Chernikov
2023-10-27 10:04:57 +02:00
committed by Space Team
parent 87563f3aea
commit 1d461684ae
9 changed files with 63 additions and 12 deletions
@@ -13972,6 +13972,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/generics/unresolvedClassifierInWhere.kt");
}
@Test
@TestMetadata("whereClauseSyntax.kt")
public void testWhereClauseSyntax() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/whereClauseSyntax.kt");
}
@Test
@TestMetadata("wildcardInValueParameter.kt")
public void testWildcardInValueParameter() throws Exception {
@@ -13972,6 +13972,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/generics/unresolvedClassifierInWhere.kt");
}
@Test
@TestMetadata("whereClauseSyntax.kt")
public void testWhereClauseSyntax() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/whereClauseSyntax.kt");
}
@Test
@TestMetadata("wildcardInValueParameter.kt")
public void testWildcardInValueParameter() throws Exception {