2015-02-17 23:12:28 +01:00
|
|
|
=== 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
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
export module m1 {
|
2015-04-13 23:01:57 +02:00
|
|
|
>m1 : typeof m1, Symbol(m1, Decl(es6ModuleConst.ts, 3, 27))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
}
|
|
|
|
module m2 {
|
2015-04-13 23:01:57 +02:00
|
|
|
>m2 : typeof m2, Symbol(m2, Decl(es6ModuleConst.ts, 9, 1))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
|
|
|
|
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))
|
2015-02-17 23:12:28 +01:00
|
|
|
}
|