149 lines
1.5 KiB
Plaintext
149 lines
1.5 KiB
Plaintext
=== tests/cases/compiler/es6ModuleConstEnumDeclaration2.ts ===
|
|
|
|
export const enum e1 {
|
|
>e1 : e1
|
|
|
|
a,
|
|
>a : e1
|
|
|
|
b,
|
|
>b : e1
|
|
|
|
c
|
|
>c : e1
|
|
}
|
|
const enum e2 {
|
|
>e2 : e2
|
|
|
|
x,
|
|
>x : e2
|
|
|
|
y,
|
|
>y : e2
|
|
|
|
z
|
|
>z : e2
|
|
}
|
|
var x = e1.a;
|
|
>x : e1
|
|
>e1.a : e1
|
|
>e1 : typeof e1
|
|
>a : e1
|
|
|
|
var y = e2.x;
|
|
>y : e2
|
|
>e2.x : e2
|
|
>e2 : typeof e2
|
|
>x : e2
|
|
|
|
export module m1 {
|
|
>m1 : typeof m1
|
|
|
|
export const enum e3 {
|
|
>e3 : e3
|
|
|
|
a,
|
|
>a : e3
|
|
|
|
b,
|
|
>b : e3
|
|
|
|
c
|
|
>c : e3
|
|
}
|
|
const enum e4 {
|
|
>e4 : e4
|
|
|
|
x,
|
|
>x : e4
|
|
|
|
y,
|
|
>y : e4
|
|
|
|
z
|
|
>z : e4
|
|
}
|
|
var x1 = e1.a;
|
|
>x1 : e1
|
|
>e1.a : e1
|
|
>e1 : typeof e1
|
|
>a : e1
|
|
|
|
var y1 = e2.x;
|
|
>y1 : e2
|
|
>e2.x : e2
|
|
>e2 : typeof e2
|
|
>x : e2
|
|
|
|
var x2 = e3.a;
|
|
>x2 : e3
|
|
>e3.a : e3
|
|
>e3 : typeof e3
|
|
>a : e3
|
|
|
|
var y2 = e4.x;
|
|
>y2 : e4
|
|
>e4.x : e4
|
|
>e4 : typeof e4
|
|
>x : e4
|
|
}
|
|
module m2 {
|
|
>m2 : typeof m2
|
|
|
|
export const enum e5 {
|
|
>e5 : e5
|
|
|
|
a,
|
|
>a : e5
|
|
|
|
b,
|
|
>b : e5
|
|
|
|
c
|
|
>c : e5
|
|
}
|
|
const enum e6 {
|
|
>e6 : e6
|
|
|
|
x,
|
|
>x : e6
|
|
|
|
y,
|
|
>y : e6
|
|
|
|
z
|
|
>z : e6
|
|
}
|
|
var x1 = e1.a;
|
|
>x1 : e1
|
|
>e1.a : e1
|
|
>e1 : typeof e1
|
|
>a : e1
|
|
|
|
var y1 = e2.x;
|
|
>y1 : e2
|
|
>e2.x : e2
|
|
>e2 : typeof e2
|
|
>x : e2
|
|
|
|
var x2 = e5.a;
|
|
>x2 : e5
|
|
>e5.a : e5
|
|
>e5 : typeof e5
|
|
>a : e5
|
|
|
|
var y2 = e6.x;
|
|
>y2 : e6
|
|
>e6.x : e6
|
|
>e6 : typeof e6
|
|
>x : e6
|
|
|
|
var x3 = m1.e3.a;
|
|
>x3 : m1.e3
|
|
>m1.e3.a : m1.e3
|
|
>m1.e3 : typeof m1.e3
|
|
>m1 : typeof m1
|
|
>e3 : typeof m1.e3
|
|
>a : m1.e3
|
|
}
|