mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Fix invalid cast (#26462)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user