Merge pull request #21900 from Microsoft/fix21620

Fix emit when binder treats exported const as namespace
This commit is contained in:
Ron Buckton authored and GitHub committed 2018-02-12 13:34:54 -08:00
commit 2ff8fae5da
5 files changed
+66 -1

No files matched your search

+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;