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

11 lines
270 B
TypeScript
Raw Normal View History

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