Fix invalid cast (#26462)
This commit is contained in:
parent
2bfd919b6a
commit
fd948ac6d2
1 changed files with 1 additions and 1 deletions
|
@ -26696,7 +26696,7 @@ namespace ts {
|
|||
case SyntaxKind.ParenthesizedType:
|
||||
case SyntaxKind.OptionalType:
|
||||
case SyntaxKind.RestType:
|
||||
return checkSourceElement((<ParenthesizedTypeNode | OptionalTypeNode>node).type);
|
||||
return checkSourceElement((<ParenthesizedTypeNode | OptionalTypeNode | RestTypeNode>node).type);
|
||||
case SyntaxKind.ThisType:
|
||||
return checkThisType(<ThisTypeNode>node);
|
||||
case SyntaxKind.TypeOperator:
|
||||
|
|
Loading…
Reference in a new issue