diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 7486c7541be..360887f0b67 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -2722,6 +2722,8 @@ namespace ts { case SyntaxKind.ObjectKeyword: case SyntaxKind.AsteriskToken: case SyntaxKind.QuestionToken: + case SyntaxKind.ExclamationToken: + case SyntaxKind.DotDotDotToken: return true; case SyntaxKind.MinusToken: return lookAhead(nextTokenIsNumericLiteral);