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 @@ -13486,6 +13486,9 @@ namespace ts {
13486
13486
13487
13487
function checkDeleteExpression(node: DeleteExpression): Type {
13488
13488
checkExpression(node.expression);
13489
+ checkReferenceExpression(node.expression,
13490
+ Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference,
13491
+ Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
13489
13492
return booleanType;
13490
13493
}
13491
13494
Original file line number Diff line number Diff line change 1971
1971
"category" : " Error" ,
1972
1972
"code" : 2697
1973
1973
},
1974
+ "The operand of a delete operator must be a property reference" : {
1975
+ "category" : " Error" ,
1976
+ "code" : 2698
1977
+ },
1978
+ "The operand of a delete operator cannot be a read-only property" : {
1979
+ "category" : " Error" ,
1980
+ "code" : 2699
1981
+ },
1974
1982
1975
1983
"Import declaration '{0}' is using private name '{1}'." : {
1976
1984
"category" : " Error" ,
You can’t perform that action at this time.
0 commit comments