TypeScript/tests/baselines/reference/es6ModuleConst.types

72 lines
2.7 KiB
Text
Raw Normal View History

=== tests/cases/compiler/es6ModuleConst.ts ===
export const a = "hello";
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(es6ModuleConst.ts, 0, 12))
2015-04-13 21:36:11 +02:00
>"hello" : string
export const x: string = a, y = x;
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(es6ModuleConst.ts, 1, 12))
>a : string, Symbol(a, Decl(es6ModuleConst.ts, 0, 12))
>y : string, Symbol(y, Decl(es6ModuleConst.ts, 1, 27))
>x : string, Symbol(x, Decl(es6ModuleConst.ts, 1, 12))
const b = y;
2015-04-13 23:01:57 +02:00
>b : string, Symbol(b, Decl(es6ModuleConst.ts, 2, 5))
>y : string, Symbol(y, Decl(es6ModuleConst.ts, 1, 27))
const c: string = b, d = c;
2015-04-13 23:01:57 +02:00
>c : string, Symbol(c, Decl(es6ModuleConst.ts, 3, 5))
>b : string, Symbol(b, Decl(es6ModuleConst.ts, 2, 5))
>d : string, Symbol(d, Decl(es6ModuleConst.ts, 3, 20))
>c : string, Symbol(c, Decl(es6ModuleConst.ts, 3, 5))
export module m1 {
2015-04-13 23:01:57 +02:00
>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConst.ts, 3, 27))
export const k = a;
2015-04-13 23:01:57 +02:00
>k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16))
>a : string, Symbol(a, Decl(es6ModuleConst.ts, 0, 12))
export const l: string = b, m = k;
2015-04-13 23:01:57 +02:00
>l : string, Symbol(l, Decl(es6ModuleConst.ts, 6, 16))
>b : string, Symbol(b, Decl(es6ModuleConst.ts, 2, 5))
>m : string, Symbol(m, Decl(es6ModuleConst.ts, 6, 31))
>k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16))
const n = m1.k;
2015-04-13 23:01:57 +02:00
>n : string, Symbol(n, Decl(es6ModuleConst.ts, 7, 9))
>m1.k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16))
>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConst.ts, 3, 27))
>k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16))
const o: string = n, p = k;
2015-04-13 23:01:57 +02:00
>o : string, Symbol(o, Decl(es6ModuleConst.ts, 8, 9))
>n : string, Symbol(n, Decl(es6ModuleConst.ts, 7, 9))
>p : string, Symbol(p, Decl(es6ModuleConst.ts, 8, 24))
>k : string, Symbol(k, Decl(es6ModuleConst.ts, 5, 16))
}
module m2 {
2015-04-13 23:01:57 +02:00
>m2 : typeof m2, Symbol(m2, Decl(es6ModuleConst.ts, 9, 1))
export const k = a;
2015-04-13 23:01:57 +02:00
>k : string, Symbol(k, Decl(es6ModuleConst.ts, 11, 16))
>a : string, Symbol(a, Decl(es6ModuleConst.ts, 0, 12))
export const l: string = b, m = k;
2015-04-13 23:01:57 +02:00
>l : string, Symbol(l, Decl(es6ModuleConst.ts, 12, 16))
>b : string, Symbol(b, Decl(es6ModuleConst.ts, 2, 5))
>m : string, Symbol(m, Decl(es6ModuleConst.ts, 12, 31))
>k : string, Symbol(k, Decl(es6ModuleConst.ts, 11, 16))
const n = m1.k;
2015-04-13 23:01:57 +02:00
>n : string, Symbol(n, Decl(es6ModuleConst.ts, 13, 9))
>m1.k : string, Symbol(m1.k, Decl(es6ModuleConst.ts, 5, 16))
>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConst.ts, 3, 27))
>k : string, Symbol(m1.k, Decl(es6ModuleConst.ts, 5, 16))
const o: string = n, p = k;
2015-04-13 23:01:57 +02:00
>o : string, Symbol(o, Decl(es6ModuleConst.ts, 14, 9))
>n : string, Symbol(n, Decl(es6ModuleConst.ts, 13, 9))
>p : string, Symbol(p, Decl(es6ModuleConst.ts, 14, 24))
>k : string, Symbol(k, Decl(es6ModuleConst.ts, 11, 16))
}