Skip to content

Commit cd70f22

Browse files
committed
Add “|” and “&” to list of tokens that start a type
1 parent e45c5db commit cd70f22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compiler/parser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,6 +2556,8 @@ namespace ts {
25562556
case SyntaxKind.OpenBraceToken:
25572557
case SyntaxKind.OpenBracketToken:
25582558
case SyntaxKind.LessThanToken:
2559+
case SyntaxKind.BarToken:
2560+
case SyntaxKind.AmpersandToken:
25592561
case SyntaxKind.NewKeyword:
25602562
case SyntaxKind.StringLiteral:
25612563
case SyntaxKind.NumericLiteral:

0 commit comments

Comments
 (0)