@@ -9339,7 +9339,7 @@ namespace ts {
9339
9339
if (accessExpression) {
9340
9340
markPropertyAsReferenced(prop, accessExpression, /*isThisAccess*/ accessExpression.expression.kind === SyntaxKind.ThisKeyword);
9341
9341
if (isAssignmentTarget(accessExpression) && (isReferenceToReadonlyEntity(accessExpression, prop) || isReferenceThroughNamespaceImport(accessExpression))) {
9342
- error(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property , symbolToString(prop));
9342
+ error(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property , symbolToString(prop));
9343
9343
return missingType;
9344
9344
}
9345
9345
if (cacheSymbol) {
@@ -15895,7 +15895,7 @@ namespace ts {
15895
15895
error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol));
15896
15896
}
15897
15897
else {
15898
- error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property , symbolToString(symbol));
15898
+ error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property , symbolToString(symbol));
15899
15899
}
15900
15900
return errorType;
15901
15901
}
@@ -18468,7 +18468,7 @@ namespace ts {
18468
18468
checkPropertyAccessibility(node, left.kind === SyntaxKind.SuperKeyword, apparentType, prop);
18469
18469
if (assignmentKind) {
18470
18470
if (isReferenceToReadonlyEntity(<Expression>node, prop) || isReferenceThroughNamespaceImport(<Expression>node)) {
18471
- error(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property , idText(right));
18471
+ error(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property , idText(right));
18472
18472
return errorType;
18473
18473
}
18474
18474
}
0 commit comments