mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
8 lines
167 B
TypeScript
8 lines
167 B
TypeScript
// @target: es6
|
|
var methodName = "method";
|
|
var accessorName = "accessor";
|
|
class C {
|
|
[methodName](v: string);
|
|
[methodName]();
|
|
[methodName](v?: string) { }
|
|
} |