|
| 1 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(3,3): error TS1100: Invalid use of 'eval' in strict mode. |
| 2 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(4,3): error TS1100: Invalid use of 'eval' in strict mode. |
| 3 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(5,3): error TS1100: Invalid use of 'arguments' in strict mode. |
| 4 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(6,3): error TS1100: Invalid use of 'arguments' in strict mode. |
| 5 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(7,1): error TS1100: Invalid use of 'eval' in strict mode. |
| 6 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(8,1): error TS1100: Invalid use of 'eval' in strict mode. |
| 7 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(9,1): error TS1100: Invalid use of 'arguments' in strict mode. |
| 8 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(10,1): error TS1100: Invalid use of 'arguments' in strict mode. |
| 9 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(3,3): error TS2356: An arithmetic operand must be of type 'any', 'number' or an enum type. |
| 10 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(4,3): error TS2356: An arithmetic operand must be of type 'any', 'number' or an enum type. |
| 11 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(5,3): error TS2304: Cannot find name 'arguments'. |
| 12 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(6,3): error TS2304: Cannot find name 'arguments'. |
| 13 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(7,1): error TS2356: An arithmetic operand must be of type 'any', 'number' or an enum type. |
| 14 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(8,1): error TS2356: An arithmetic operand must be of type 'any', 'number' or an enum type. |
| 15 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(9,1): error TS2304: Cannot find name 'arguments'. |
| 16 | +tests/cases/compiler/unaryOperatorsInStrictMode.ts(10,1): error TS2304: Cannot find name 'arguments'. |
| 17 | + |
| 18 | + |
| 19 | +==== tests/cases/compiler/unaryOperatorsInStrictMode.ts (16 errors) ==== |
| 20 | + "use strict" |
| 21 | + |
| 22 | + ++eval; |
| 23 | + ~~~~ |
| 24 | +!!! error TS1100: Invalid use of 'eval' in strict mode. |
| 25 | + ~~~~ |
| 26 | +!!! error TS2356: An arithmetic operand must be of type 'any', 'number' or an enum type. |
| 27 | + --eval; |
| 28 | + ~~~~ |
| 29 | +!!! error TS1100: Invalid use of 'eval' in strict mode. |
| 30 | + ~~~~ |
| 31 | +!!! error TS2356: An arithmetic operand must be of type 'any', 'number' or an enum type. |
| 32 | + ++arguments; |
| 33 | + ~~~~~~~~~ |
| 34 | +!!! error TS1100: Invalid use of 'arguments' in strict mode. |
| 35 | + ~~~~~~~~~ |
| 36 | +!!! error TS2304: Cannot find name 'arguments'. |
| 37 | + --arguments; |
| 38 | + ~~~~~~~~~ |
| 39 | +!!! error TS1100: Invalid use of 'arguments' in strict mode. |
| 40 | + ~~~~~~~~~ |
| 41 | +!!! error TS2304: Cannot find name 'arguments'. |
| 42 | + eval++; |
| 43 | + ~~~~ |
| 44 | +!!! error TS1100: Invalid use of 'eval' in strict mode. |
| 45 | + ~~~~ |
| 46 | +!!! error TS2356: An arithmetic operand must be of type 'any', 'number' or an enum type. |
| 47 | + eval--; |
| 48 | + ~~~~ |
| 49 | +!!! error TS1100: Invalid use of 'eval' in strict mode. |
| 50 | + ~~~~ |
| 51 | +!!! error TS2356: An arithmetic operand must be of type 'any', 'number' or an enum type. |
| 52 | + arguments++; |
| 53 | + ~~~~~~~~~ |
| 54 | +!!! error TS1100: Invalid use of 'arguments' in strict mode. |
| 55 | + ~~~~~~~~~ |
| 56 | +!!! error TS2304: Cannot find name 'arguments'. |
| 57 | + arguments--; |
| 58 | + ~~~~~~~~~ |
| 59 | +!!! error TS1100: Invalid use of 'arguments' in strict mode. |
| 60 | + ~~~~~~~~~ |
| 61 | +!!! error TS2304: Cannot find name 'arguments'. |
| 62 | + |
0 commit comments