Parsing:Allow QuestionToken as start of type

This commit is contained in:
Nathan Shively-Sanders 2017-08-23 15:00:12 -07:00
parent 49676c58f3
commit 71c5b1b354

View file

@ -2721,6 +2721,7 @@ namespace ts {
case SyntaxKind.FalseKeyword:
case SyntaxKind.ObjectKeyword:
case SyntaxKind.AsteriskToken:
case SyntaxKind.QuestionToken:
return true;
case SyntaxKind.MinusToken:
return lookAhead(nextTokenIsNumericLiteral);