2015-03-12 18:00:48 +01:00
|
|
|
=== tests/cases/compiler/es6ModuleConstEnumDeclaration.ts ===
|
|
|
|
export const enum e1 {
|
2015-04-13 22:54:22 +02:00
|
|
|
>e1 : e1, Symbol(e1,Decl(es6ModuleConstEnumDeclaration.ts,0,0))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
a,
|
2015-04-13 22:54:22 +02:00
|
|
|
>a : e1, Symbol(e1.a,Decl(es6ModuleConstEnumDeclaration.ts,0,22))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
b,
|
2015-04-13 22:54:22 +02:00
|
|
|
>b : e1, Symbol(e1.b,Decl(es6ModuleConstEnumDeclaration.ts,1,6))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
c
|
2015-04-13 22:54:22 +02:00
|
|
|
>c : e1, Symbol(e1.c,Decl(es6ModuleConstEnumDeclaration.ts,2,6))
|
2015-03-12 18:00:48 +01:00
|
|
|
}
|
|
|
|
const enum e2 {
|
2015-04-13 22:54:22 +02:00
|
|
|
>e2 : e2, Symbol(e2,Decl(es6ModuleConstEnumDeclaration.ts,4,1))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
x,
|
2015-04-13 22:54:22 +02:00
|
|
|
>x : e2, Symbol(e2.x,Decl(es6ModuleConstEnumDeclaration.ts,5,15))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
y,
|
2015-04-13 22:54:22 +02:00
|
|
|
>y : e2, Symbol(e2.y,Decl(es6ModuleConstEnumDeclaration.ts,6,6))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
z
|
2015-04-13 22:54:22 +02:00
|
|
|
>z : e2, Symbol(e2.z,Decl(es6ModuleConstEnumDeclaration.ts,7,6))
|
2015-03-12 18:00:48 +01:00
|
|
|
}
|
|
|
|
var x = e1.a;
|
2015-04-13 22:54:22 +02:00
|
|
|
>x : e1, Symbol(x,Decl(es6ModuleConstEnumDeclaration.ts,10,3))
|
|
|
|
>e1.a : e1, Symbol(e1.a,Decl(es6ModuleConstEnumDeclaration.ts,0,22))
|
|
|
|
>e1 : typeof e1, Symbol(e1,Decl(es6ModuleConstEnumDeclaration.ts,0,0))
|
|
|
|
>a : e1, Symbol(e1.a,Decl(es6ModuleConstEnumDeclaration.ts,0,22))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
var y = e2.x;
|
2015-04-13 22:54:22 +02:00
|
|
|
>y : e2, Symbol(y,Decl(es6ModuleConstEnumDeclaration.ts,11,3))
|
|
|
|
>e2.x : e2, Symbol(e2.x,Decl(es6ModuleConstEnumDeclaration.ts,5,15))
|
|
|
|
>e2 : typeof e2, Symbol(e2,Decl(es6ModuleConstEnumDeclaration.ts,4,1))
|
|
|
|
>x : e2, Symbol(e2.x,Decl(es6ModuleConstEnumDeclaration.ts,5,15))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
export module m1 {
|
2015-04-13 22:54:22 +02:00
|
|
|
>m1 : typeof m1, Symbol(m1,Decl(es6ModuleConstEnumDeclaration.ts,11,13))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
export const enum e3 {
|
2015-04-13 22:54:22 +02:00
|
|
|
>e3 : e3, Symbol(e3,Decl(es6ModuleConstEnumDeclaration.ts,12,18))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
a,
|
2015-04-13 22:54:22 +02:00
|
|
|
>a : e3, Symbol(e3.a,Decl(es6ModuleConstEnumDeclaration.ts,13,26))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
b,
|
2015-04-13 22:54:22 +02:00
|
|
|
>b : e3, Symbol(e3.b,Decl(es6ModuleConstEnumDeclaration.ts,14,10))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
c
|
2015-04-13 22:54:22 +02:00
|
|
|
>c : e3, Symbol(e3.c,Decl(es6ModuleConstEnumDeclaration.ts,15,10))
|
2015-03-12 18:00:48 +01:00
|
|
|
}
|
|
|
|
const enum e4 {
|
2015-04-13 22:54:22 +02:00
|
|
|
>e4 : e4, Symbol(e4,Decl(es6ModuleConstEnumDeclaration.ts,17,5))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
x,
|
2015-04-13 22:54:22 +02:00
|
|
|
>x : e4, Symbol(e4.x,Decl(es6ModuleConstEnumDeclaration.ts,18,19))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
y,
|
2015-04-13 22:54:22 +02:00
|
|
|
>y : e4, Symbol(e4.y,Decl(es6ModuleConstEnumDeclaration.ts,19,10))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
z
|
2015-04-13 22:54:22 +02:00
|
|
|
>z : e4, Symbol(e4.z,Decl(es6ModuleConstEnumDeclaration.ts,20,10))
|
2015-03-12 18:00:48 +01:00
|
|
|
}
|
|
|
|
var x1 = e1.a;
|
2015-04-13 22:54:22 +02:00
|
|
|
>x1 : e1, Symbol(x1,Decl(es6ModuleConstEnumDeclaration.ts,23,7))
|
|
|
|
>e1.a : e1, Symbol(e1.a,Decl(es6ModuleConstEnumDeclaration.ts,0,22))
|
|
|
|
>e1 : typeof e1, Symbol(e1,Decl(es6ModuleConstEnumDeclaration.ts,0,0))
|
|
|
|
>a : e1, Symbol(e1.a,Decl(es6ModuleConstEnumDeclaration.ts,0,22))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
var y1 = e2.x;
|
2015-04-13 22:54:22 +02:00
|
|
|
>y1 : e2, Symbol(y1,Decl(es6ModuleConstEnumDeclaration.ts,24,7))
|
|
|
|
>e2.x : e2, Symbol(e2.x,Decl(es6ModuleConstEnumDeclaration.ts,5,15))
|
|
|
|
>e2 : typeof e2, Symbol(e2,Decl(es6ModuleConstEnumDeclaration.ts,4,1))
|
|
|
|
>x : e2, Symbol(e2.x,Decl(es6ModuleConstEnumDeclaration.ts,5,15))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
var x2 = e3.a;
|
2015-04-13 22:54:22 +02:00
|
|
|
>x2 : e3, Symbol(x2,Decl(es6ModuleConstEnumDeclaration.ts,25,7))
|
|
|
|
>e3.a : e3, Symbol(e3.a,Decl(es6ModuleConstEnumDeclaration.ts,13,26))
|
|
|
|
>e3 : typeof e3, Symbol(e3,Decl(es6ModuleConstEnumDeclaration.ts,12,18))
|
|
|
|
>a : e3, Symbol(e3.a,Decl(es6ModuleConstEnumDeclaration.ts,13,26))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
var y2 = e4.x;
|
2015-04-13 22:54:22 +02:00
|
|
|
>y2 : e4, Symbol(y2,Decl(es6ModuleConstEnumDeclaration.ts,26,7))
|
|
|
|
>e4.x : e4, Symbol(e4.x,Decl(es6ModuleConstEnumDeclaration.ts,18,19))
|
|
|
|
>e4 : typeof e4, Symbol(e4,Decl(es6ModuleConstEnumDeclaration.ts,17,5))
|
|
|
|
>x : e4, Symbol(e4.x,Decl(es6ModuleConstEnumDeclaration.ts,18,19))
|
2015-03-12 18:00:48 +01:00
|
|
|
}
|
|
|
|
module m2 {
|
2015-04-13 22:54:22 +02:00
|
|
|
>m2 : typeof m2, Symbol(m2,Decl(es6ModuleConstEnumDeclaration.ts,27,1))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
export const enum e5 {
|
2015-04-13 22:54:22 +02:00
|
|
|
>e5 : e5, Symbol(e5,Decl(es6ModuleConstEnumDeclaration.ts,28,11))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
a,
|
2015-04-13 22:54:22 +02:00
|
|
|
>a : e5, Symbol(e5.a,Decl(es6ModuleConstEnumDeclaration.ts,29,26))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
b,
|
2015-04-13 22:54:22 +02:00
|
|
|
>b : e5, Symbol(e5.b,Decl(es6ModuleConstEnumDeclaration.ts,30,10))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
c
|
2015-04-13 22:54:22 +02:00
|
|
|
>c : e5, Symbol(e5.c,Decl(es6ModuleConstEnumDeclaration.ts,31,10))
|
2015-03-12 18:00:48 +01:00
|
|
|
}
|
|
|
|
const enum e6 {
|
2015-04-13 22:54:22 +02:00
|
|
|
>e6 : e6, Symbol(e6,Decl(es6ModuleConstEnumDeclaration.ts,33,5))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
x,
|
2015-04-13 22:54:22 +02:00
|
|
|
>x : e6, Symbol(e6.x,Decl(es6ModuleConstEnumDeclaration.ts,34,19))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
y,
|
2015-04-13 22:54:22 +02:00
|
|
|
>y : e6, Symbol(e6.y,Decl(es6ModuleConstEnumDeclaration.ts,35,10))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
z
|
2015-04-13 22:54:22 +02:00
|
|
|
>z : e6, Symbol(e6.z,Decl(es6ModuleConstEnumDeclaration.ts,36,10))
|
2015-03-12 18:00:48 +01:00
|
|
|
}
|
|
|
|
var x1 = e1.a;
|
2015-04-13 22:54:22 +02:00
|
|
|
>x1 : e1, Symbol(x1,Decl(es6ModuleConstEnumDeclaration.ts,39,7))
|
|
|
|
>e1.a : e1, Symbol(e1.a,Decl(es6ModuleConstEnumDeclaration.ts,0,22))
|
|
|
|
>e1 : typeof e1, Symbol(e1,Decl(es6ModuleConstEnumDeclaration.ts,0,0))
|
|
|
|
>a : e1, Symbol(e1.a,Decl(es6ModuleConstEnumDeclaration.ts,0,22))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
var y1 = e2.x;
|
2015-04-13 22:54:22 +02:00
|
|
|
>y1 : e2, Symbol(y1,Decl(es6ModuleConstEnumDeclaration.ts,40,7))
|
|
|
|
>e2.x : e2, Symbol(e2.x,Decl(es6ModuleConstEnumDeclaration.ts,5,15))
|
|
|
|
>e2 : typeof e2, Symbol(e2,Decl(es6ModuleConstEnumDeclaration.ts,4,1))
|
|
|
|
>x : e2, Symbol(e2.x,Decl(es6ModuleConstEnumDeclaration.ts,5,15))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
var x2 = e5.a;
|
2015-04-13 22:54:22 +02:00
|
|
|
>x2 : e5, Symbol(x2,Decl(es6ModuleConstEnumDeclaration.ts,41,7))
|
|
|
|
>e5.a : e5, Symbol(e5.a,Decl(es6ModuleConstEnumDeclaration.ts,29,26))
|
|
|
|
>e5 : typeof e5, Symbol(e5,Decl(es6ModuleConstEnumDeclaration.ts,28,11))
|
|
|
|
>a : e5, Symbol(e5.a,Decl(es6ModuleConstEnumDeclaration.ts,29,26))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
var y2 = e6.x;
|
2015-04-13 22:54:22 +02:00
|
|
|
>y2 : e6, Symbol(y2,Decl(es6ModuleConstEnumDeclaration.ts,42,7))
|
|
|
|
>e6.x : e6, Symbol(e6.x,Decl(es6ModuleConstEnumDeclaration.ts,34,19))
|
|
|
|
>e6 : typeof e6, Symbol(e6,Decl(es6ModuleConstEnumDeclaration.ts,33,5))
|
|
|
|
>x : e6, Symbol(e6.x,Decl(es6ModuleConstEnumDeclaration.ts,34,19))
|
2015-03-12 18:00:48 +01:00
|
|
|
|
|
|
|
var x3 = m1.e3.a;
|
2015-04-13 22:54:22 +02:00
|
|
|
>x3 : m1.e3, Symbol(x3,Decl(es6ModuleConstEnumDeclaration.ts,43,7))
|
|
|
|
>m1.e3.a : m1.e3, Symbol(m1.e3.a,Decl(es6ModuleConstEnumDeclaration.ts,13,26))
|
|
|
|
>m1.e3 : typeof m1.e3, Symbol(m1.e3,Decl(es6ModuleConstEnumDeclaration.ts,12,18))
|
|
|
|
>m1 : typeof m1, Symbol(m1,Decl(es6ModuleConstEnumDeclaration.ts,11,13))
|
|
|
|
>e3 : typeof m1.e3, Symbol(m1.e3,Decl(es6ModuleConstEnumDeclaration.ts,12,18))
|
|
|
|
>a : m1.e3, Symbol(m1.e3.a,Decl(es6ModuleConstEnumDeclaration.ts,13,26))
|
2015-03-12 18:00:48 +01:00
|
|
|
}
|