diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 414a8ce17fa..f977cdd1f16 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -10961,7 +10961,6 @@ module ts { } function isUnknownIdentifier(location: Node, name: string): boolean { - // Do not call resolveName on a synthesized node! Debug.assert(!nodeIsSynthesized(location), "isUnknownIdentifier called with a synthesized location"); return !resolveName(location, name, SymbolFlags.Value, /*nodeNotFoundMessage*/ undefined, /*nameArg*/ undefined) && !hasProperty(getGeneratedNamesForSourceFile(getSourceFile(location)), name);