Files
tsgo/testdata/baselines/reference/submodule/compiler/computedEnumMemberSyntacticallyString(isolatedmodules=true).js

34 lines
667 B
TypeScript

//// [tests/cases/compiler/computedEnumMemberSyntacticallyString.ts] ////
//// [computedEnumMemberSyntacticallyString.ts]
const BAR = 2..toFixed(0);
enum Foo {
A = `${BAR}`,
B = "2" + BAR,
C = (`${BAR}`),
F = BAR,
G = 2 + BAR,
H = A,
I = H + BAR,
J = H
}
//// [computedEnumMemberSyntacticallyString.js]
"use strict";
const BAR = 2..toFixed(0);
var Foo;
(function (Foo) {
Foo["A"] = `${BAR}`;
Foo["B"] = "2" + BAR;
Foo["C"] = (`${BAR}`);
Foo[Foo["F"] = BAR] = "F";
Foo[Foo["G"] = 2 + BAR] = "G";
Foo["H"] = Foo.A;
Foo["I"] = Foo.H + BAR;
Foo["J"] = Foo.H;
})(Foo || (Foo = {}));