2014-07-13 01:04:16 +02:00
|
|
|
//// [cloduleAcrossModuleDefinitions.ts]
|
|
|
|
module A {
|
|
|
|
export class B {
|
|
|
|
foo() { }
|
|
|
|
static bar() { }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module A {
|
|
|
|
export module B {
|
|
|
|
export var x = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var b: A.B; // ok
|
|
|
|
|
|
|
|
|
|
|
|
//// [cloduleAcrossModuleDefinitions.js]
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
|
|
|
var B = (function () {
|
|
|
|
function B() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
B.prototype.foo = function () { };
|
|
|
|
B.bar = function () { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return B;
|
|
|
|
})();
|
|
|
|
A.B = B;
|
|
|
|
})(A || (A = {}));
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
2014-09-07 02:40:19 +02:00
|
|
|
var B;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (B) {
|
|
|
|
B.x = 1;
|
2014-09-07 02:40:19 +02:00
|
|
|
})(B = A.B || (A.B = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
})(A || (A = {}));
|
2014-08-15 22:18:54 +02:00
|
|
|
var b; // ok
|