58 lines
879 B
Text
58 lines
879 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 L
|
||
|
>K : L
|
||
|
>L : L
|
||
|
}
|
||
|
var o: { name: string };
|
||
|
>o : { name: string; }
|
||
|
>name : string
|
||
|
|
||
|
var o = new M.D('Hello');
|
||
|
>o : { name: string; }
|
||
|
>new M.D('Hello') : L
|
||
|
>M.D : typeof L
|
||
|
>M : typeof M
|
||
|
>D : typeof 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 : M
|
||
|
>D : D
|
||
|
>Point : Point
|
||
|
|