From 52f826a46e147f78c1e0573f012d740e192b0f48 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Tue, 27 Mar 2018 17:49:05 -0700 Subject: [PATCH] Revert assertion addition (#22622) (#22920) --- src/compiler/checker.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 931d040cdfdf7..b5ed4934cac91 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -8059,8 +8059,7 @@ namespace ts { function getLiteralTypeFromPropertyName(prop: Symbol) { const links = getSymbolLinks(getLateBoundSymbol(prop)); if (!links.nameType) { - if (links.target && links.target !== unknownSymbol && links.target !== resolvingSymbol) { - Debug.assert(links.target.escapedName === prop.escapedName || links.target.escapedName === InternalSymbolName.Computed, "Target symbol and symbol do not have the same name"); + if (links.target && links.target !== unknownSymbol && links.target !== resolvingSymbol && links.target.escapedName === prop.escapedName) { links.nameType = getLiteralTypeFromPropertyName(links.target); } else {