2014-07-13 01:04:16 +02:00
|
|
|
//// [genericFunduleInModule.ts]
|
|
|
|
module A {
|
|
|
|
export function B<T>(x: T) { return x; }
|
|
|
|
export module B {
|
|
|
|
export var x = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var b: A.B;
|
|
|
|
A.B(1);
|
|
|
|
|
|
|
|
//// [genericFunduleInModule.js]
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
|
|
|
function B(x) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
A.B = B;
|
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 = {}));
|
|
|
|
var b;
|
|
|
|
A.B(1);
|