mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
32 lines
485 B
TypeScript
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;
|