TypeScript/tests/baselines/reference/es6ModuleConst.types
2016-09-01 14:25:44 -07:00

72 lines
1 KiB
Plaintext

=== tests/cases/compiler/es6ModuleConst.ts ===
export const a = "hello";
>a : "hello"
>"hello" : "hello"
export const x: string = a, y = x;
>x : string
>a : "hello"
>y : string
>x : string
const b = y;
>b : string
>y : string
const c: string = b, d = c;
>c : string
>b : string
>d : string
>c : string
export module m1 {
>m1 : typeof m1
export const k = a;
>k : "hello"
>a : "hello"
export const l: string = b, m = k;
>l : string
>b : string
>m : "hello"
>k : "hello"
const n = m1.k;
>n : "hello"
>m1.k : "hello"
>m1 : typeof m1
>k : "hello"
const o: string = n, p = k;
>o : string
>n : "hello"
>p : "hello"
>k : "hello"
}
module m2 {
>m2 : typeof m2
export const k = a;
>k : "hello"
>a : "hello"
export const l: string = b, m = k;
>l : string
>b : string
>m : "hello"
>k : "hello"
const n = m1.k;
>n : "hello"
>m1.k : "hello"
>m1 : typeof m1
>k : "hello"
const o: string = n, p = k;
>o : string
>n : "hello"
>p : "hello"
>k : "hello"
}