File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -17749,15 +17749,11 @@ namespace ts {
17749
17749
17750
17750
let typeArguments: NodeArray<TypeNode>;
17751
17751
17752
- if (isTaggedTemplate) {
17753
- typeArguments = (node as TaggedTemplateExpression).typeArguments;
17754
- forEach(typeArguments, checkSourceElement);
17755
- }
17756
- else if (!isDecorator && !isJsxOpeningOrSelfClosingElement) {
17752
+ if (!isDecorator && !isJsxOpeningOrSelfClosingElement) {
17757
17753
typeArguments = (<CallExpression>node).typeArguments;
17758
17754
17759
17755
// We already perform checking on the type arguments on the class declaration itself.
17760
- if ((<CallExpression>node).expression.kind !== SyntaxKind.SuperKeyword) {
17756
+ if (isTaggedTemplate || (<CallExpression>node).expression.kind !== SyntaxKind.SuperKeyword) {
17761
17757
forEach(typeArguments, checkSourceElement);
17762
17758
}
17763
17759
}
You can’t perform that action at this time.
0 commit comments