TypeScript/tests/baselines/reference/exportImportAndClodule.types

58 lines
908 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/exportImportAndClodule.ts ===
module K {
2014-08-28 21:40:58 +02:00
>K : typeof K
2014-08-15 23:33:16 +02:00
export class L {
>L : L
constructor(public name: string) { }
>name : string
}
export module L {
2014-08-28 21:40:58 +02:00
>L : typeof L
2014-08-15 23:33:16 +02:00
export var y = 12;
>y : number
export interface Point {
>Point : Point
x: number;
>x : number
y: number;
>y : number
}
}
}
module M {
2014-08-28 21:40:58 +02:00
>M : typeof M
2014-08-15 23:33:16 +02:00
export import D = K.L;
2014-08-28 21:40:58 +02:00
>D : typeof D
>K : typeof K
2014-08-25 19:36:12 +02:00
>L : D
2014-08-15 23:33:16 +02:00
}
var o: { name: string };
>o : { name: string; }
>name : string
var o = new M.D('Hello');
>o : { name: string; }
2014-08-25 19:36:12 +02:00
>new M.D('Hello') : K.L
>M.D : typeof K.L
2014-08-15 23:33:16 +02:00
>M : typeof M
2014-08-25 19:36:12 +02:00
>D : typeof K.L
2014-08-15 23:33:16 +02:00
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; }
2014-08-28 21:40:58 +02:00
>M : unknown
>D : unknown
2014-08-25 19:36:12 +02:00
>Point : K.L.Point
2014-08-15 23:33:16 +02:00