TypeScript/tests/baselines/reference/innerExtern.js
2014-09-06 17:40:19 -07:00

30 lines
507 B
TypeScript

//// [innerExtern.ts]
module A {
export declare module BB {
export var Elephant;
}
export module B {
export class C {
x = BB.Elephant.X;
}
}
}
//// [innerExtern.js]
var A;
(function (A) {
var B;
(function (B) {
var C = (function () {
function C() {
this.x = BB.Elephant.X;
}
return C;
})();
B.C = C;
})(B = A.B || (A.B = {}));
})(A || (A = {}));