@@ -10,11 +10,12 @@ function f<T>(x: T): T {
1010>x : Symbol(x, Decl(ambientConstLiterals.ts, 0, 14))
1111}
1212
13- enum E { A, B, C }
13+ enum E { A, B, C, "non identifier" }
1414>E : Symbol(E, Decl(ambientConstLiterals.ts, 2, 1))
1515>A : Symbol(E.A, Decl(ambientConstLiterals.ts, 4, 8))
1616>B : Symbol(E.B, Decl(ambientConstLiterals.ts, 4, 11))
1717>C : Symbol(E.C, Decl(ambientConstLiterals.ts, 4, 14))
18+ >"non identifier" : Symbol(E["non identifier"], Decl(ambientConstLiterals.ts, 4, 17))
1819
1920const c1 = "abc";
2021>c1 : Symbol(c1, Decl(ambientConstLiterals.ts, 6, 5))
@@ -47,27 +48,32 @@ const c8 = E.A;
4748>E : Symbol(E, Decl(ambientConstLiterals.ts, 2, 1))
4849>A : Symbol(E.A, Decl(ambientConstLiterals.ts, 4, 8))
4950
51+ const c8b = E["non identifier"];
52+ >c8b : Symbol(c8b, Decl(ambientConstLiterals.ts, 14, 5))
53+ >E : Symbol(E, Decl(ambientConstLiterals.ts, 2, 1))
54+ >"non identifier" : Symbol(E["non identifier"], Decl(ambientConstLiterals.ts, 4, 17))
55+
5056const c9 = { x: "abc" };
51- >c9 : Symbol(c9, Decl(ambientConstLiterals.ts, 14 , 5))
52- >x : Symbol(x, Decl(ambientConstLiterals.ts, 14 , 12))
57+ >c9 : Symbol(c9, Decl(ambientConstLiterals.ts, 15 , 5))
58+ >x : Symbol(x, Decl(ambientConstLiterals.ts, 15 , 12))
5359
5460const c10 = [123];
55- >c10 : Symbol(c10, Decl(ambientConstLiterals.ts, 15 , 5))
61+ >c10 : Symbol(c10, Decl(ambientConstLiterals.ts, 16 , 5))
5662
5763const c11 = "abc" + "def";
58- >c11 : Symbol(c11, Decl(ambientConstLiterals.ts, 16 , 5))
64+ >c11 : Symbol(c11, Decl(ambientConstLiterals.ts, 17 , 5))
5965
6066const c12 = 123 + 456;
61- >c12 : Symbol(c12, Decl(ambientConstLiterals.ts, 17 , 5))
67+ >c12 : Symbol(c12, Decl(ambientConstLiterals.ts, 18 , 5))
6268
6369const c13 = Math.random() > 0.5 ? "abc" : "def";
64- >c13 : Symbol(c13, Decl(ambientConstLiterals.ts, 18 , 5))
70+ >c13 : Symbol(c13, Decl(ambientConstLiterals.ts, 19 , 5))
6571>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
6672>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
6773>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
6874
6975const c14 = Math.random() > 0.5 ? 123 : 456;
70- >c14 : Symbol(c14, Decl(ambientConstLiterals.ts, 19 , 5))
76+ >c14 : Symbol(c14, Decl(ambientConstLiterals.ts, 20 , 5))
7177>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
7278>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
7379>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
0 commit comments