1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
=== tests/cases/compiler/es6ModuleEnumDeclaration.ts ===
export enum e1 {
>e1 : e1
a,
>a : e1.a
b,
>b : e1.b
c
>c : e1.c
}
enum e2 {
>e2 : e2
x,
>x : e2.x
y,
>y : e2.y
z
>z : e2.z
}
var x = e1.a;
>x : e1
>e1.a : e1.a
>e1 : typeof e1
>a : e1.a
var y = e2.x;
>y : e2
>e2.x : e2.x
>e2 : typeof e2
>x : e2.x
export module m1 {
>m1 : typeof m1
export enum e3 {
>e3 : e3
a,
>a : e3.a
b,
>b : e3.b
c
>c : e3.c
}
enum e4 {
>e4 : e4
x,
>x : e4.x
y,
>y : e4.y
z
>z : e4.z
}
var x1 = e1.a;
>x1 : e1
>e1.a : e1.a
>e1 : typeof e1
>a : e1.a
var y1 = e2.x;
>y1 : e2
>e2.x : e2.x
>e2 : typeof e2
>x : e2.x
var x2 = e3.a;
>x2 : e3
>e3.a : e3.a
>e3 : typeof e3
>a : e3.a
var y2 = e4.x;
>y2 : e4
>e4.x : e4.x
>e4 : typeof e4
>x : e4.x
}
module m2 {
>m2 : typeof m2
export enum e5 {
>e5 : e5
a,
>a : e5.a
b,
>b : e5.b
c
>c : e5.c
}
enum e6 {
>e6 : e6
x,
>x : e6.x
y,
>y : e6.y
z
>z : e6.z
}
var x1 = e1.a;
>x1 : e1
>e1.a : e1.a
>e1 : typeof e1
>a : e1.a
var y1 = e2.x;
>y1 : e2
>e2.x : e2.x
>e2 : typeof e2
>x : e2.x
var x2 = e5.a;
>x2 : e5
>e5.a : e5.a
>e5 : typeof e5
>a : e5.a
var y2 = e6.x;
>y2 : e6
>e6.x : e6.x
>e6 : typeof e6
>x : e6.x
var x3 = m1.e3.a;
>x3 : m1.e3
>m1.e3.a : m1.e3.a
>m1.e3 : typeof m1.e3
>m1 : typeof m1
>e3 : typeof m1.e3
>a : m1.e3.a
}
|