|
| 1 | +tests/cases/conformance/es6/Symbols/symbolType10.ts(2,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 2 | +tests/cases/conformance/es6/Symbols/symbolType10.ts(2,5): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 3 | +tests/cases/conformance/es6/Symbols/symbolType10.ts(3,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 4 | +tests/cases/conformance/es6/Symbols/symbolType10.ts(3,5): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 5 | +tests/cases/conformance/es6/Symbols/symbolType10.ts(4,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 6 | +tests/cases/conformance/es6/Symbols/symbolType10.ts(4,5): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 7 | +tests/cases/conformance/es6/Symbols/symbolType10.ts(6,1): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 8 | +tests/cases/conformance/es6/Symbols/symbolType10.ts(7,5): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 9 | + |
| 10 | + |
| 11 | +==== tests/cases/conformance/es6/Symbols/symbolType10.ts (8 errors) ==== |
| 12 | + var s = Symbol.for("bitwise"); |
| 13 | + s & s; |
| 14 | + ~ |
| 15 | +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 16 | + ~ |
| 17 | +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 18 | + s | s; |
| 19 | + ~ |
| 20 | +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 21 | + ~ |
| 22 | +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 23 | + s ^ s; |
| 24 | + ~ |
| 25 | +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 26 | + ~ |
| 27 | +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 28 | + |
| 29 | + s & 0; |
| 30 | + ~ |
| 31 | +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
| 32 | + 0 | s; |
| 33 | + ~ |
| 34 | +!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. |
0 commit comments