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

11 lines
270 B
TypeScript
Raw Normal View History

// @target: es5
var methodName = "method";
var accessorName = "accessor";
class C {
[methodName]() { }
static [methodName]() { }
get [accessorName]() { }
set [accessorName](v) { }
static get [accessorName]() { }
static set [accessorName](v) { }
}