diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 60fcf103041..b65d153aa45 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17749,15 +17749,11 @@ namespace ts { let typeArguments: NodeArray; - if (isTaggedTemplate) { - typeArguments = (node as TaggedTemplateExpression).typeArguments; - forEach(typeArguments, checkSourceElement); - } - else if (!isDecorator && !isJsxOpeningOrSelfClosingElement) { + if (!isDecorator && !isJsxOpeningOrSelfClosingElement) { typeArguments = (node).typeArguments; // We already perform checking on the type arguments on the class declaration itself. - if ((node).expression.kind !== SyntaxKind.SuperKeyword) { + if (isTaggedTemplate || (node).expression.kind !== SyntaxKind.SuperKeyword) { forEach(typeArguments, checkSourceElement); } }