TypeScript/tests/baselines/reference/autonumberingInEnums.js

19 lines
316 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [autonumberingInEnums.ts]
enum Foo {
a = 1
}
enum Foo {
b // should work fine
}
//// [autonumberingInEnums.js]
var Foo;
(function (Foo) {
Foo[Foo["a"] = 1] = "a";
})(Foo || (Foo = {}));
var Foo;
(function (Foo) {
Foo[Foo["b"] = 0] = "b"; // should work fine
2014-07-13 01:04:16 +02:00
})(Foo || (Foo = {}));