TypeScript/tests/baselines/reference/mergedModuleDeclarationCodeGen.js
2015-03-23 16:16:29 -07:00

43 lines
856 B
TypeScript

//// [mergedModuleDeclarationCodeGen.ts]
export module X {
export module Y {
class A {
constructor(Y: any) {
new B();
}
}
}
}
export module X {
export module Y {
export class B {
}
}
}
//// [mergedModuleDeclarationCodeGen.js]
var X;
(function (X) {
var Y;
(function (Y_1) {
var A = (function () {
function A(Y) {
new Y_1.B();
}
return A;
})();
})(Y = X.Y || (X.Y = {}));
})(X = exports.X || (exports.X = {}));
var X;
(function (X) {
var Y;
(function (Y) {
var B = (function () {
function B() {
}
return B;
})();
Y.B = B;
})(Y = X.Y || (X.Y = {}));
})(X = exports.X || (exports.X = {}));