We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65a422 commit e43e5c3Copy full SHA for e43e5c3
src/compiler/checker.ts
@@ -4978,8 +4978,6 @@ module ts {
4978
return getContextualTypeForElementExpression(node);
4979
case SyntaxKind.ConditionalExpression:
4980
return getContextualTypeForConditionalOperand(node);
4981
- case SyntaxKind.TemplateExpression:
4982
- return getContextualTypeForSubstitutionExpression(<TemplateExpression>parent.parent, node);
4983
case SyntaxKind.TemplateSpan:
4984
Debug.assert(parent.parent.kind === SyntaxKind.TemplateExpression);
4985
return getContextualTypeForSubstitutionExpression(<TemplateExpression>parent.parent, node);
0 commit comments