TypeScript/tests/baselines/reference/usingModuleWithExportImportInValuePosition.types
2015-04-15 16:44:20 -07:00

67 lines
1.1 KiB
Plaintext

=== tests/cases/compiler/usingModuleWithExportImportInValuePosition.ts ===
module A {
>A : typeof A
export var x = 'hello world'
>x : string
>'hello world' : string
export class Point {
>Point : Point
constructor(public x: number, public y: number) { }
>x : number
>y : number
}
export module B {
>B : any
export interface Id {
>Id : Id
name: string;
>name : string
}
}
}
module C {
>C : typeof C
export import a = A;
>a : typeof a
>A : typeof a
}
var a: string = C.a.x;
>a : string
>C.a.x : string
>C.a : typeof A
>C : typeof C
>a : typeof A
>x : string
var b: { x: number; y: number; } = new C.a.Point(0, 0);
>b : { x: number; y: number; }
>x : number
>y : number
>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
>0 : number
>0 : number
var c: { name: string };
>c : { name: string; }
>name : string
var c: C.a.B.Id;
>c : { name: string; }
>C : any
>a : any
>B : any
>Id : A.B.Id