16 lines
828 B
Text
16 lines
828 B
Text
|
tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads.ts(4,5): error TS1168: Computed property names are not allowed in method overloads.
|
||
|
tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads.ts(5,5): error TS1168: Computed property names are not allowed in method overloads.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads.ts (2 errors) ====
|
||
|
var methodName = "method";
|
||
|
var accessorName = "accessor";
|
||
|
class C {
|
||
|
[methodName](v: string);
|
||
|
~~~~~~~~~~~~
|
||
|
!!! error TS1168: Computed property names are not allowed in method overloads.
|
||
|
[methodName]();
|
||
|
~~~~~~~~~~~~
|
||
|
!!! error TS1168: Computed property names are not allowed in method overloads.
|
||
|
[methodName](v?: string) { }
|
||
|
}
|