mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 07:07:09 -05:00
Merge pull request #21900 from Microsoft/fix21620
Fix emit when binder treats exported const as namespace
This commit is contained in:
@@ -25054,7 +25054,7 @@ namespace ts {
|
||||
// we prefix depends on the kind of entity. SymbolFlags.ExportHasLocal encompasses all the
|
||||
// kinds that we do NOT prefix.
|
||||
const exportSymbol = getMergedSymbol(symbol.exportSymbol);
|
||||
if (!prefixLocals && exportSymbol.flags & SymbolFlags.ExportHasLocal) {
|
||||
if (!prefixLocals && exportSymbol.flags & SymbolFlags.ExportHasLocal && !(exportSymbol.flags & SymbolFlags.Variable)) {
|
||||
return undefined;
|
||||
}
|
||||
symbol = exportSymbol;
|
||||
|
||||
Reference in New Issue
Block a user