swc/crates/swc_ecma_parser/tests/tsc/computedPropertyNames17_ES6.ts

10 lines
213 B
TypeScript

// @target: es6
var b: boolean;
class C {
get [b]() { return 0;}
static set [true](v) { }
get [[]]() { return 0; }
set [{}](v) { }
static get [undefined]() { return 0; }
set [null](v) { }
}