TypeScript/tests/baselines/reference/usingModuleWithExportImportInValuePosition.types

67 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/usingModuleWithExportImportInValuePosition.ts ===
module A {
>A : typeof A
2014-08-15 23:33:16 +02:00
export var x = 'hello world'
>x : string
2015-04-13 21:36:11 +02:00
>'hello world' : string
2014-08-15 23:33:16 +02:00
export class Point {
>Point : Point
2014-08-15 23:33:16 +02:00
constructor(public x: number, public y: number) { }
>x : number
>y : number
2014-08-15 23:33:16 +02:00
}
export module B {
>B : any
2014-08-15 23:33:16 +02:00
export interface Id {
>Id : Id
2014-08-15 23:33:16 +02:00
name: string;
>name : string
2014-08-15 23:33:16 +02:00
}
}
}
module C {
>C : typeof C
2014-08-15 23:33:16 +02:00
export import a = A;
>a : typeof a
>A : typeof a
2014-08-15 23:33:16 +02:00
}
var a: string = C.a.x;
>a : string
>C.a.x : string
>C.a : typeof A
>C : typeof C
>a : typeof A
>x : string
2014-08-15 23:33:16 +02:00
var b: { x: number; y: number; } = new C.a.Point(0, 0);
>b : { x: number; y: number; }
>x : number
>y : number
2014-08-25 19:36:12 +02:00
>new C.a.Point(0, 0) : A.Point
>C.a.Point : typeof A.Point
>C.a : typeof A
>C : typeof C
>a : typeof A
>Point : typeof A.Point
2015-04-13 21:36:11 +02:00
>0 : number
>0 : number
2014-08-15 23:33:16 +02:00
var c: { name: string };
>c : { name: string; }
>name : string
2014-08-15 23:33:16 +02:00
var c: C.a.B.Id;
>c : { name: string; }
>C : any
>a : any
>B : any
>Id : A.B.Id
2014-08-15 23:33:16 +02:00