57 lines
908 B
Text
57 lines
908 B
Text
=== tests/cases/compiler/exportImportAndClodule.ts ===
|
|
module K {
|
|
>K : typeof K
|
|
|
|
export class L {
|
|
>L : L
|
|
|
|
constructor(public name: string) { }
|
|
>name : string
|
|
}
|
|
export module L {
|
|
>L : typeof L
|
|
|
|
export var y = 12;
|
|
>y : number
|
|
|
|
export interface Point {
|
|
>Point : Point
|
|
|
|
x: number;
|
|
>x : number
|
|
|
|
y: number;
|
|
>y : number
|
|
}
|
|
}
|
|
}
|
|
module M {
|
|
>M : typeof M
|
|
|
|
export import D = K.L;
|
|
>D : typeof D
|
|
>K : typeof K
|
|
>L : D
|
|
}
|
|
var o: { name: string };
|
|
>o : { name: string; }
|
|
>name : string
|
|
|
|
var o = new M.D('Hello');
|
|
>o : { name: string; }
|
|
>new M.D('Hello') : K.L
|
|
>M.D : typeof K.L
|
|
>M : typeof M
|
|
>D : typeof K.L
|
|
|
|
var p: { x: number; y: number; }
|
|
>p : { x: number; y: number; }
|
|
>x : number
|
|
>y : number
|
|
|
|
var p: M.D.Point;
|
|
>p : { x: number; y: number; }
|
|
>M : unknown
|
|
>D : unknown
|
|
>Point : K.L.Point
|
|
|