|
1 | 1 | tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(4,28): error TS4031: Public property '[Symbol.iterator]' of exported class has or is using private name 'I'.
|
| 2 | +tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(5,9): error TS2300: Duplicate identifier '[Symbol.toPrimitive]'. |
2 | 3 | tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(5,33): error TS4073: Parameter 'x' of public method from exported class has or is using private name 'I'.
|
3 | 4 | tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(6,40): error TS4055: Return type of public method from exported class has or is using private name 'I'.
|
4 |
| -tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(10,34): error TS4037: Parameter '[Symbol.isRegExp]' of public property setter from exported class has or is using private name 'I'. |
| 5 | +tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(9,13): error TS2300: Duplicate identifier '[Symbol.toPrimitive]'. |
| 6 | +tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(10,13): error TS2300: Duplicate identifier '[Symbol.toPrimitive]'. |
| 7 | +tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts(10,37): error TS4037: Parameter '[Symbol.toPrimitive]' of public property setter from exported class has or is using private name 'I'. |
5 | 8 |
|
6 | 9 |
|
7 |
| -==== tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts (4 errors) ==== |
| 10 | +==== tests/cases/conformance/es6/Symbols/symbolDeclarationEmit12.ts (7 errors) ==== |
8 | 11 | module M {
|
9 | 12 | interface I { }
|
10 | 13 | export class C {
|
11 | 14 | [Symbol.iterator]: I;
|
12 | 15 | ~
|
13 | 16 | !!! error TS4031: Public property '[Symbol.iterator]' of exported class has or is using private name 'I'.
|
14 | 17 | [Symbol.toPrimitive](x: I) { }
|
| 18 | + ~~~~~~~~~~~~~~~~~~~~ |
| 19 | +!!! error TS2300: Duplicate identifier '[Symbol.toPrimitive]'. |
15 | 20 | ~
|
16 | 21 | !!! error TS4073: Parameter 'x' of public method from exported class has or is using private name 'I'.
|
17 | 22 | [Symbol.isConcatSpreadable](): I {
|
18 | 23 | ~
|
19 | 24 | !!! error TS4055: Return type of public method from exported class has or is using private name 'I'.
|
20 | 25 | return undefined
|
21 | 26 | }
|
22 |
| - get [Symbol.isRegExp]() { return undefined; } |
23 |
| - set [Symbol.isRegExp](x: I) { } |
24 |
| - ~ |
25 |
| -!!! error TS4037: Parameter '[Symbol.isRegExp]' of public property setter from exported class has or is using private name 'I'. |
| 27 | + get [Symbol.toPrimitive]() { return undefined; } |
| 28 | + ~~~~~~~~~~~~~~~~~~~~ |
| 29 | +!!! error TS2300: Duplicate identifier '[Symbol.toPrimitive]'. |
| 30 | + set [Symbol.toPrimitive](x: I) { } |
| 31 | + ~~~~~~~~~~~~~~~~~~~~ |
| 32 | +!!! error TS2300: Duplicate identifier '[Symbol.toPrimitive]'. |
| 33 | + ~ |
| 34 | +!!! error TS4037: Parameter '[Symbol.toPrimitive]' of public property setter from exported class has or is using private name 'I'. |
26 | 35 | }
|
27 | 36 | }
|
0 commit comments