File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1394,8 +1394,8 @@ namespace ts {
1394
1394
// Tokens other than ')' and ']' (the latter for index signatures) are here for better error recovery
1395
1395
return token ( ) === SyntaxKind . CloseParenToken || token ( ) === SyntaxKind . CloseBracketToken /*|| token === SyntaxKind.OpenBraceToken*/ ;
1396
1396
case ParsingContext . TypeArguments :
1397
- // Tokens other than '>' are here for better error recovery
1398
- return token ( ) === SyntaxKind . GreaterThanToken || token ( ) === SyntaxKind . OpenParenToken ;
1397
+ // All other tokens should cause the type-argument to terminate except comma token
1398
+ return token ( ) !== SyntaxKind . CommaToken ;
1399
1399
case ParsingContext . HeritageClauses :
1400
1400
return token ( ) === SyntaxKind . OpenBraceToken || token ( ) === SyntaxKind . CloseBraceToken ;
1401
1401
case ParsingContext . JsxAttributes :
You can’t perform that action at this time.
0 commit comments