Skip to content

Commit 71c5b1b

Browse files
committed
Parsing:Allow QuestionToken as start of type
1 parent 49676c5 commit 71c5b1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,6 +2721,7 @@ namespace ts {
27212721
case SyntaxKind.FalseKeyword:
27222722
case SyntaxKind.ObjectKeyword:
27232723
case SyntaxKind.AsteriskToken:
2724+
case SyntaxKind.QuestionToken:
27242725
return true;
27252726
case SyntaxKind.MinusToken:
27262727
return lookAhead(nextTokenIsNumericLiteral);

0 commit comments

Comments
 (0)