File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -13550,6 +13550,9 @@ namespace ts {
13550
13550
13551
13551
function checkDeleteExpression(node: DeleteExpression): Type {
13552
13552
checkExpression(node.expression);
13553
+ checkReferenceExpression(node.expression,
13554
+ Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference,
13555
+ Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
13553
13556
return booleanType;
13554
13557
}
13555
13558
Original file line number Diff line number Diff line change 1983
1983
"category" : " Error" ,
1984
1984
"code" : 2697
1985
1985
},
1986
+ "The operand of a delete operator must be a property reference" : {
1987
+ "category" : " Error" ,
1988
+ "code" : 2698
1989
+ },
1990
+ "The operand of a delete operator cannot be a read-only property" : {
1991
+ "category" : " Error" ,
1992
+ "code" : 2699
1993
+ },
1986
1994
1987
1995
"Import declaration '{0}' is using private name '{1}'." : {
1988
1996
"category" : " Error" ,
You can’t perform that action at this time.
0 commit comments