TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts

10 lines
213 B
TypeScript

// @target: es6
var id;
class C {
[0 + 1]() { }
static [() => { }]() { }
get [delete id]() { }
set [[0, 1]](v) { }
static get [<String>""]() { }
static set [id.toString()](v) { }
}