mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Fix invalid cast (#26462)
This commit is contained in:
parent
2bfd919b6a
commit
fd948ac6d2
@ -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…
x
Reference in New Issue
Block a user