|
1 |
| -tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(3,9): error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
2 |
| -tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(4,16): error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
3 |
| -tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(5,9): error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
4 |
| -tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(6,9): error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
5 |
| -tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(7,16): error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
6 |
| -tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(8,9): error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
| 1 | +tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(3,9): error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
| 2 | +tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(4,16): error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
| 3 | +tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(5,9): error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
| 4 | +tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(6,9): error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
| 5 | +tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(7,16): error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
| 6 | +tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts(8,9): error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
7 | 7 |
|
8 | 8 |
|
9 | 9 | ==== tests/cases/conformance/es6/computedProperties/computedPropertyNames17.ts (6 errors) ====
|
10 | 10 | var b: boolean;
|
11 | 11 | class C {
|
12 | 12 | get [b]() { return 0;}
|
13 | 13 | ~~~
|
14 |
| -!!! error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
| 14 | +!!! error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
15 | 15 | static set [true](v) { }
|
16 | 16 | ~~~~~~
|
17 |
| -!!! error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
| 17 | +!!! error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
18 | 18 | get [[]]() { return 0; }
|
19 | 19 | ~~~~
|
20 |
| -!!! error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
| 20 | +!!! error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
21 | 21 | set [{}](v) { }
|
22 | 22 | ~~~~
|
23 |
| -!!! error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
| 23 | +!!! error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
24 | 24 | static get [undefined]() { return 0; }
|
25 | 25 | ~~~~~~~~~~~
|
26 |
| -!!! error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
| 26 | +!!! error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
27 | 27 | set [null](v) { }
|
28 | 28 | ~~~~~~
|
29 |
| -!!! error TS2464: A computed property name must be of type 'string', 'number', or 'any'. |
| 29 | +!!! error TS2464: A computed property name must be of type 'string', 'number', 'Symbol', or 'any'. |
30 | 30 | }
|
0 commit comments