TypeScript/tests/baselines/reference/computedPropertyNames3_ES6.js
2015-03-15 16:29:41 -07:00

31 lines
518 B
JavaScript

//// [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]
var id;
class C {
[0 + 1]() {
}
static [() => {
}]() {
}
get [delete id]() {
}
set [[
0,
1
]](v) {
}
static get [""]() {
}
static set [id.toString()](v) {
}
}