[FIR] Fix crash on assignment expression with incorrect lvalue with LT mode
^KT-65241 Fixed
This commit is contained in:
committed by
Space Team
parent
c2e28149e6
commit
9a86b83a0c
+6
@@ -13178,6 +13178,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/exceptions/annotationWithWrongArgInDanglingModifierList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assignmentWithIncorrectLValue.kt")
|
||||
public void testAssignmentWithIncorrectLValue() {
|
||||
runTest("compiler/testData/diagnostics/tests/exceptions/assignmentWithIncorrectLValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.kt")
|
||||
public void testExpectedSomeTypesOnBranchForWhenExpressionOfErroneousType() {
|
||||
|
||||
+6
@@ -13184,6 +13184,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/exceptions/annotationWithWrongArgInDanglingModifierList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assignmentWithIncorrectLValue.kt")
|
||||
public void testAssignmentWithIncorrectLValue() {
|
||||
runTest("compiler/testData/diagnostics/tests/exceptions/assignmentWithIncorrectLValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectedSomeTypesOnBranchForWhenExpressionOfErroneousType.kt")
|
||||
public void testExpectedSomeTypesOnBranchForWhenExpressionOfErroneousType() {
|
||||
|
||||
+1
-1
@@ -625,7 +625,7 @@ class LightTreeRawFirExpressionBuilder(
|
||||
}
|
||||
|
||||
return result ?: buildErrorExpression {
|
||||
source = null
|
||||
source = dotQualifiedExpression.toFirSourceElement()
|
||||
diagnostic = ConeSyntaxDiagnostic("Qualified expression without selector")
|
||||
|
||||
// if there is no selector, we still want to resolve the receiver
|
||||
|
||||
Reference in New Issue
Block a user