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
52 lines
No EOL
4.1 KiB
Text
52 lines
No EOL
4.1 KiB
Text
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(5,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(6,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(7,12): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(8,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(9,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(10,12): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(11,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(12,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(13,12): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(14,5): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts(15,12): error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
|
|
|
|
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts (11 errors) ====
|
|
var s: string;
|
|
var n: number;
|
|
var a: any;
|
|
class C {
|
|
[s]: number;
|
|
~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
[n] = n;
|
|
~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
static [s + s]: string;
|
|
~~~~~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
[s + n] = 2;
|
|
~~~~~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
[+s]: typeof s;
|
|
~~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
static [""]: number;
|
|
~~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
[0]: number;
|
|
~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
[a]: number;
|
|
~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
static [<any>true]: number;
|
|
~~~~~~~~~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
[`hello bye`] = 0;
|
|
~~~~~~~~~~~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
static [`hello ${a} bye`] = 0
|
|
~~~~~~~~~~~~~~~~~~
|
|
!!! error TS1166: A computed property name in a class property declaration must directly refer to a built-in symbol.
|
|
} |