Skip to content

Commit 241cc97

Browse files
committed
fix: throw type parse error at true branch of conditional type
1 parent 22c76cf commit 241cc97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/parser.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3512,6 +3512,7 @@ namespace ts {
35123512
case SyntaxKind.ReadonlyKeyword:
35133513
case SyntaxKind.SymbolKeyword:
35143514
case SyntaxKind.UniqueKeyword:
3515+
case SyntaxKind.ThrowKeyword:
35153516
case SyntaxKind.VoidKeyword:
35163517
case SyntaxKind.UndefinedKeyword:
35173518
case SyntaxKind.NullKeyword:

0 commit comments

Comments
 (0)