revert back fix for implicit exports of imports
This commit is contained in:
parent
0f323ea74a
commit
6f3f690a8d
|
@ -355,7 +355,7 @@ namespace ts {
|
|||
function declareModuleMember(node: Declaration, symbolFlags: SymbolFlags, symbolExcludes: SymbolFlags): Symbol {
|
||||
const hasExportModifier = getCombinedNodeFlags(node) & NodeFlags.Export;
|
||||
if (symbolFlags & SymbolFlags.Alias) {
|
||||
if (node.kind === SyntaxKind.ExportSpecifier || (node.kind === SyntaxKind.ImportEqualsDeclaration && (hasExportModifier || container.flags & NodeFlags.ExportContext))) {
|
||||
if (node.kind === SyntaxKind.ExportSpecifier || (node.kind === SyntaxKind.ImportEqualsDeclaration && hasExportModifier)) {
|
||||
return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes);
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -13,7 +13,7 @@ declare global {
|
|||
}
|
||||
class Cls {x}
|
||||
let [a, b]: number[];
|
||||
import X = M.M1.x;
|
||||
export import X = M.M1.x;
|
||||
}
|
||||
|
||||
//// [main.ts]
|
||||
|
|
|
@ -26,7 +26,7 @@ declare global {
|
|||
>a : Symbol(a, Decl(f1.d.ts, 11, 9))
|
||||
>b : Symbol(b, Decl(f1.d.ts, 11, 11))
|
||||
|
||||
import X = M.M1.x;
|
||||
export import X = M.M1.x;
|
||||
>X : Symbol(X, Decl(f1.d.ts, 11, 25))
|
||||
>M : Symbol(M, Decl(f1.d.ts, 1, 10))
|
||||
>M1 : Symbol(M.M1, Decl(f1.d.ts, 3, 17))
|
||||
|
|
|
@ -26,7 +26,7 @@ declare global {
|
|||
>a : number
|
||||
>b : number
|
||||
|
||||
import X = M.M1.x;
|
||||
export import X = M.M1.x;
|
||||
>X : number
|
||||
>M : typeof M
|
||||
>M1 : typeof M.M1
|
||||
|
|
|
@ -12,7 +12,7 @@ declare global {
|
|||
}
|
||||
class Cls {x}
|
||||
let [a, b]: number[];
|
||||
import X = M.M1.x;
|
||||
export import X = M.M1.x;
|
||||
}
|
||||
|
||||
// @filename: main.ts
|
||||
|
|
Loading…
Reference in a new issue