TypeScript/tests/baselines/reference/computedPropertyNames3_ES6.js

22 lines
458 B
TypeScript
Raw Normal View History

//// [computedPropertyNames3_ES6.ts]
2015-01-06 23:19:43 +01:00
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]
2015-01-06 23:19:43 +01:00
var id;
2015-03-16 00:29:41 +01:00
class C {
[0 + 1]() { }
static [() => { }]() { }
get [delete id]() { }
set [[0, 1]](v) { }
static get [""]() { }
static set [id.toString()](v) { }
2015-03-16 00:29:41 +01:00
}