mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
320 B
TypeScript
16 lines
320 B
TypeScript
//// [tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnumDeclaration1.ts] ////
|
|
|
|
//// [parserEnumDeclaration1.ts]
|
|
enum E {
|
|
Foo = 1,
|
|
Bar
|
|
}
|
|
|
|
//// [parserEnumDeclaration1.js]
|
|
"use strict";
|
|
var E;
|
|
(function (E) {
|
|
E[E["Foo"] = 1] = "Foo";
|
|
E[E["Bar"] = 2] = "Bar";
|
|
})(E || (E = {}));
|