19 lines
1.1 KiB
Text
19 lines
1.1 KiB
Text
|
tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts(4,5): error TS1168: Computed property names are not allowed in method overloads.
|
||
|
tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts(5,5): error TS1168: Computed property names are not allowed in method overloads.
|
||
|
tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts(6,5): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/es6/computedProperties/computedPropertyNamesOnOverloads_ES5.ts (3 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) { }
|
||
|
~~~~~~~~~~~~
|
||
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
||
|
}
|