TypeScript/tests/baselines/reference/innerExtern.js

30 lines
507 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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;
2014-07-13 01:04:16 +02:00
(function (B) {
var C = (function () {
function C() {
this.x = BB.Elephant.X;
}
return C;
})();
B.C = C;
})(B = A.B || (A.B = {}));
2014-07-13 01:04:16 +02:00
})(A || (A = {}));