19 lines
336 B
TypeScript
19 lines
336 B
TypeScript
//// [computedPropertyNames47_ES6.ts]
|
|
enum E1 { x }
|
|
enum E2 { x }
|
|
var o = {
|
|
[E1.x || E2.x]: 0
|
|
};
|
|
|
|
//// [computedPropertyNames47_ES6.js]
|
|
var E1;
|
|
(function (E1) {
|
|
E1[E1["x"] = 0] = "x";
|
|
})(E1 || (E1 = {}));
|
|
var E2;
|
|
(function (E2) {
|
|
E2[E2["x"] = 0] = "x";
|
|
})(E2 || (E2 = {}));
|
|
var o = {
|
|
[E1.x || E2.x]: 0
|
|
};
|