ec678f3ebd
Conflicts: src/compiler/emitter.ts tests/baselines/reference/computedPropertyNames12_ES5.errors.txt tests/baselines/reference/computedPropertyNames14_ES5.errors.txt tests/baselines/reference/computedPropertyNames15_ES5.errors.txt tests/baselines/reference/computedPropertyNames17_ES5.errors.txt tests/baselines/reference/computedPropertyNames32_ES5.errors.txt tests/baselines/reference/computedPropertyNames35_ES5.errors.txt tests/baselines/reference/computedPropertyNames3_ES5.errors.txt tests/baselines/reference/computedPropertyNames42_ES5.errors.txt tests/baselines/reference/computedPropertyNames5_ES5.errors.txt tests/baselines/reference/computedPropertyNames6_ES5.errors.txt tests/baselines/reference/computedPropertyNames8_ES5.errors.txt tests/baselines/reference/computedPropertyNames9_ES5.errors.txt tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.errors.txt tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.errors.txt tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.errors.txt
30 lines
No EOL
2.1 KiB
Text
30 lines
No EOL
2.1 KiB
Text
tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts(3,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts(4,16): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts(5,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts(6,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts(7,16): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts(8,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
|
|
|
|
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames17_ES5.ts (6 errors) ====
|
|
var b: boolean;
|
|
class C {
|
|
get [b]() { return 0;}
|
|
~~~
|
|
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
static set [true](v) { }
|
|
~~~~~~
|
|
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
get [[]]() { return 0; }
|
|
~~~~
|
|
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
set [{}](v) { }
|
|
~~~~
|
|
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
static get [undefined]() { return 0; }
|
|
~~~~~~~~~~~
|
|
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
set [null](v) { }
|
|
~~~~~~
|
|
!!! error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
|
|
} |