TypeScript Version: 3.7.0-beta
Search Terms: namespace renamed export
Code
export declare const x: number;
declare global {
namespace clutz {
export {x as some$mangled$name$x};
}
namespace clutz.some$mangled$name {
export {some$mangled$name$x as x};
}
}
(Using the mangled alias name some$mangled$name$x instead of x makes sure that no other symbol in the namespace accidentally shadows the outer x.)
Expected behavior:
In TypeScript 3.6, some$mangled$name$x within the nested namespace clutz.some$mangled$name resolves to export {x as clutz.some$mangled$name$x} in the parent namespace, and thus eventually to x.
Actual behavior:
In TypeScript 3.7, some$mangled$name$x does not resolve in the nested namespace.
Playground Link: (no 3.7 playground around)
Related Issues:
TypeScript Version: 3.7.0-beta
Search Terms: namespace renamed export
Code
(Using the mangled alias name
some$mangled$name$xinstead ofxmakes sure that no other symbol in the namespace accidentally shadows the outerx.)Expected behavior:
In TypeScript 3.6,
some$mangled$name$xwithin the nested namespaceclutz.some$mangled$nameresolves toexport {x as clutz.some$mangled$name$x}in the parent namespace, and thus eventually tox.Actual behavior:
In TypeScript 3.7,
some$mangled$name$xdoes not resolve in the nested namespace.Playground Link: (no 3.7 playground around)
Related Issues: