diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 06031c9b84a..f6ccc4e6d59 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -869,14 +869,13 @@ module ts { function templateNeedsParens(template: TemplateExpression, parent: Expression) { switch (parent.kind) { - case SyntaxKind.TaggedTemplateExpression: - Debug.fail("Path should be unreachable; tagged templates not supported pre-ES6!"); - //return (parent).tag === template; case SyntaxKind.CallExpression: case SyntaxKind.NewExpression: return (parent).func === template; case SyntaxKind.ParenExpression: return false; + case SyntaxKind.TaggedTemplateExpression: + Debug.fail("Path should be unreachable; tagged templates not supported pre-ES6."); default: return comparePrecedenceToBinaryPlus(parent) !== Comparison.LessThan; }