mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
467 B
TypeScript
19 lines
467 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES6.ts] ////
|
|
|
|
//// [computedPropertyNamesOnOverloads_ES6.ts]
|
|
var methodName = "method";
|
|
var accessorName = "accessor";
|
|
class C {
|
|
[methodName](v: string);
|
|
[methodName]();
|
|
[methodName](v?: string) { }
|
|
}
|
|
|
|
//// [computedPropertyNamesOnOverloads_ES6.js]
|
|
"use strict";
|
|
var methodName = "method";
|
|
var accessorName = "accessor";
|
|
class C {
|
|
[methodName](v) { }
|
|
}
|