mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
394 B
TypeScript
20 lines
394 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames6_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames6_ES6.ts]
|
|
declare var p1: number | string;
|
|
declare var p2: number | number[];
|
|
declare var p3: string | boolean;
|
|
var v = {
|
|
[p1]: 0,
|
|
[p2]: 1,
|
|
[p3]: 2
|
|
}
|
|
|
|
//// [computedPropertyNames6_ES6.js]
|
|
"use strict";
|
|
var v = {
|
|
[p1]: 0,
|
|
[p2]: 1,
|
|
[p3]: 2
|
|
};
|