TypeScript/tests/baselines/reference/innerExtern.js
2015-12-08 17:51:10 -08: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 = {}));