Skip to content

Commit fd948ac

Browse files
author
Andy
authored
Fix invalid cast (microsoft#26462)
1 parent 2bfd919 commit fd948ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26696,7 +26696,7 @@ namespace ts {
2669626696
case SyntaxKind.ParenthesizedType:
2669726697
case SyntaxKind.OptionalType:
2669826698
case SyntaxKind.RestType:
26699-
return checkSourceElement((<ParenthesizedTypeNode | OptionalTypeNode>node).type);
26699+
return checkSourceElement((<ParenthesizedTypeNode | OptionalTypeNode | RestTypeNode>node).type);
2670026700
case SyntaxKind.ThisType:
2670126701
return checkThisType(<ThisTypeNode>node);
2670226702
case SyntaxKind.TypeOperator:

0 commit comments

Comments
 (0)