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

10 lines
213 B
TypeScript

// @target: es5
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) { }
}