swc/crates/swc_ecma_parser/tests/tsc/nestedModules.ts

32 lines
485 B
TypeScript

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;