Fix invalid cast (#26462)

This commit is contained in:
Andy 2018-08-15 10:17:18 -07:00 committed by GitHub
parent 2bfd919b6a
commit fd948ac6d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: