Enums with numeric names not emitted as string

This commit is contained in:
Mohamed Hegazy
2016-04-06 17:26:07 -07:00
parent 1561fe41a4
commit 45cd93c9cb
2 changed files with 6 additions and 6 deletions

View File

@@ -11,14 +11,14 @@ var E2;
var E3;
(function (E3) {
E3[E3["a"] = 0] = "a";
E3[E3["1"] = 1] = "1";
E3[E3[1] = 1] = 1;
})(E3 || (E3 = {}));
var E1;
(function (E1) {
E1[E1["a"] = 0] = "a";
E1[E1["b"] = 1] = "b";
E1[E1["1"] = 2] = "1";
E1[E1[1] = 2] = 1;
E1[E1["c"] = 3] = "c";
E1[E1["d"] = 4] = "d";
E1[E1["2"] = 3] = "2";
E1[E1[2] = 3] = 2;
})(E1 || (E1 = {}));

View File

@@ -6,7 +6,7 @@ enum E {
//// [parserEnum7.js]
var E;
(function (E) {
E[E["1"] = 0] = "1";
E[E["2"] = 1] = "2";
E[E["3"] = 2] = "3";
E[E[1] = 0] = 1;
E[E[2] = 1] = 2;
E[E[3] = 2] = 3;
})(E || (E = {}));