mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
444 B
TypeScript
23 lines
444 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames47_ES6.ts]
|
|
enum E1 { x }
|
|
enum E2 { x }
|
|
var o = {
|
|
[E1.x || E2.x]: 0
|
|
};
|
|
|
|
//// [computedPropertyNames47_ES6.js]
|
|
"use strict";
|
|
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
|
|
};
|