15 lines
350 B
TypeScript
15 lines
350 B
TypeScript
//// [computedPropertyNamesOnOverloads_ES6.ts]
|
|
var methodName = "method";
|
|
var accessorName = "accessor";
|
|
class C {
|
|
[methodName](v: string);
|
|
[methodName]();
|
|
[methodName](v?: string) { }
|
|
}
|
|
|
|
//// [computedPropertyNamesOnOverloads_ES6.js]
|
|
var methodName = "method";
|
|
var accessorName = "accessor";
|
|
class C {
|
|
[methodName](v) { }
|
|
}
|