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 {