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

10 lines
163 B
TypeScript

// @target: es5
var b: boolean;
class C {
[b]() {}
static [true]() { }
[[]]() { }
static [{}]() { }
[undefined]() { }
static [null]() { }
}