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

8 lines
167 B
TypeScript

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