Fix emit when binder treats exported const as namespace

This commit is contained in:
Ron Buckton
2018-02-12 13:02:47 -08:00
parent 641f787006
commit c84b7caa25
5 changed files with 66 additions and 1 deletions
+1 -1
View File
@@ -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;