diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 2b9f7d5eb6b..2b8a74a5257 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5249,6 +5249,7 @@ module ts { // then this might actually turn out to be a TemplateHead in the future; // so we consider the call to be incomplete. var templateLiteral = tagExpression.template; + Debug.assert(templateLiteral.kind === SyntaxKind.NoSubstitutionTemplateLiteral); callIsIncomplete = isUnterminatedTemplateEnd(templateLiteral); } }