2014-07-13 01:04:16 +02:00
|
|
|
//// [nestedModules.ts]
|
|
|
|
module A.B.C {
|
|
|
|
export interface Point {
|
|
|
|
x: number;
|
|
|
|
y: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module A {
|
|
|
|
export module B {
|
|
|
|
var Point: C.Point = { x: 0, y: 0 }; // bug 832088: could not find module 'C'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M2.X {
|
|
|
|
export interface Point {
|
|
|
|
x: number; y: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M2 {
|
|
|
|
export module X {
|
|
|
|
export var Point: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var m = M2.X;
|
|
|
|
var point: number;
|
|
|
|
var point = m.Point;
|
|
|
|
|
|
|
|
var p: { x: number; y: number; }
|
|
|
|
var p: M2.X.Point;
|
|
|
|
|
|
|
|
|
|
|
|
//// [nestedModules.js]
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
2014-09-07 02:40:19 +02:00
|
|
|
var B;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (B) {
|
2014-08-15 22:18:54 +02:00
|
|
|
var Point = { x: 0, y: 0 }; // bug 832088: could not find module 'C'
|
2014-09-07 02:40:19 +02:00
|
|
|
})(B = A.B || (A.B = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
})(A || (A = {}));
|
|
|
|
var M2;
|
|
|
|
(function (M2) {
|
2014-09-07 02:40:19 +02:00
|
|
|
var X;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (X) {
|
|
|
|
X.Point;
|
2014-09-07 02:40:19 +02:00
|
|
|
})(X = M2.X || (M2.X = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
})(M2 || (M2 = {}));
|
|
|
|
var m = M2.X;
|
|
|
|
var point;
|
|
|
|
var point = m.Point;
|
|
|
|
var p;
|
|
|
|
var p;
|