35 lines
724 B
TypeScript
35 lines
724 B
TypeScript
//// [moduleSharesNameWithImportDeclarationInsideIt2.ts]
|
|
module Z.M {
|
|
export function bar() {
|
|
return "";
|
|
}
|
|
}
|
|
module A.M {
|
|
export import M = Z.M;
|
|
export function bar() {
|
|
}
|
|
M.bar(); // Should call Z.M.bar
|
|
}
|
|
|
|
//// [moduleSharesNameWithImportDeclarationInsideIt2.js]
|
|
var Z;
|
|
(function (Z) {
|
|
var M;
|
|
(function (M) {
|
|
function bar() {
|
|
return "";
|
|
}
|
|
M.bar = bar;
|
|
})(M = Z.M || (Z.M = {}));
|
|
})(Z || (Z = {}));
|
|
var A;
|
|
(function (A) {
|
|
var M;
|
|
(function (M) {
|
|
M.M = Z.M;
|
|
function bar() {
|
|
}
|
|
M.bar = bar;
|
|
M.M.bar(); // Should call Z.M.bar
|
|
})(M = A.M || (A.M = {}));
|
|
})(A || (A = {}));
|