Re-exported symbols should not be in scope

This commit is contained in:
Anders Hejlsberg
2015-02-13 14:07:20 -08:00
parent e52ddcb0aa
commit c60121064a
+4 -1
View File
@@ -316,7 +316,10 @@ module ts {
if (!isExternalModule(<SourceFile>location)) break;
case SyntaxKind.ModuleDeclaration:
if (result = getSymbol(getSymbolOfNode(location).exports, name, meaning & SymbolFlags.ModuleMember)) {
break loop;
if (!(result.flags & SymbolFlags.Import && getDeclarationOfImportSymbol(result).kind === SyntaxKind.ExportSpecifier)) {
break loop;
}
result = undefined;
}
break;
case SyntaxKind.EnumDeclaration: