Fix #21848: Allows to mutate const with non-null assertion (#21873)

This commit is contained in:
jack-williams
2018-02-12 10:57:59 -08:00
committed by Mohamed Hegazy
parent ddf206b184
commit 67984c720e
6 changed files with 46 additions and 0 deletions
+1
View File
@@ -1754,6 +1754,7 @@ namespace ts {
case SyntaxKind.ParenthesizedExpression:
case SyntaxKind.ArrayLiteralExpression:
case SyntaxKind.SpreadElement:
case SyntaxKind.NonNullExpression:
node = parent;
break;
case SyntaxKind.ShorthandPropertyAssignment: