mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
565 B
TypeScript
25 lines
565 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames3_ES6.ts]
|
|
var id;
|
|
class C {
|
|
[0 + 1]() { }
|
|
static [() => { }]() { }
|
|
get [delete id]() { }
|
|
set [[0, 1]](v) { }
|
|
static get [<String>""]() { }
|
|
static set [id.toString()](v) { }
|
|
}
|
|
|
|
//// [computedPropertyNames3_ES6.js]
|
|
"use strict";
|
|
var id;
|
|
class C {
|
|
[0 + 1]() { }
|
|
static [() => { }]() { }
|
|
get [delete id]() { }
|
|
set [[0, 1]](v) { }
|
|
static get [""]() { }
|
|
static set [id.toString()](v) { }
|
|
}
|