From e43e5c3cde7bd6619e4c5133ea76152e2241bfb7 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Mon, 15 Dec 2014 14:13:31 -0800 Subject: [PATCH] Removed unnecessary case; substitution expressions only occur in TemplateSpans. --- src/compiler/checker.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 502b87c0c9d..dcbe7162b76 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4978,8 +4978,6 @@ module ts { return getContextualTypeForElementExpression(node); case SyntaxKind.ConditionalExpression: return getContextualTypeForConditionalOperand(node); - case SyntaxKind.TemplateExpression: - return getContextualTypeForSubstitutionExpression(parent.parent, node); case SyntaxKind.TemplateSpan: Debug.assert(parent.parent.kind === SyntaxKind.TemplateExpression); return getContextualTypeForSubstitutionExpression(parent.parent, node);