37 lines
No EOL
2.8 KiB
Text
37 lines
No EOL
2.8 KiB
Text
tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts(4,5): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts(5,12): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts(6,9): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts(6,9): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts(7,9): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts(8,16): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts(8,16): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts(9,16): error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
|
|
|
|
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES5.ts (8 errors) ====
|
|
var methodName = "method";
|
|
var accessorName = "accessor";
|
|
class C {
|
|
[methodName]() { }
|
|
~~~~~~~~~~~~
|
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
static [methodName]() { }
|
|
~~~~~~~~~~~~
|
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
get [accessorName]() { }
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
|
|
set [accessorName](v) { }
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
static get [accessorName]() { }
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
|
|
static set [accessorName](v) { }
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS1167: Computed property names are only available when targeting ECMAScript 6 and higher.
|
|
} |