1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "Identifier", 11 "name": "a", 12 "typeAnnotation": { 13 "type": "TSBooleanKeyword", 14 "loc": { 15 "start": { 16 "line": 17, 17 "column": 8 18 }, 19 "end": { 20 "line": 17, 21 "column": 15 22 } 23 } 24 }, 25 "decorators": [], 26 "loc": { 27 "start": { 28 "line": 17, 29 "column": 5 30 }, 31 "end": { 32 "line": 17, 33 "column": 6 34 } 35 } 36 }, 37 "init": null, 38 "loc": { 39 "start": { 40 "line": 17, 41 "column": 5 42 }, 43 "end": { 44 "line": 17, 45 "column": 6 46 } 47 } 48 } 49 ], 50 "kind": "var", 51 "loc": { 52 "start": { 53 "line": 17, 54 "column": 1 55 }, 56 "end": { 57 "line": 17, 58 "column": 16 59 } 60 } 61 }, 62 { 63 "type": "ExpressionStatement", 64 "expression": { 65 "type": "AssignmentExpression", 66 "operator": "=", 67 "left": { 68 "type": "Identifier", 69 "name": "a", 70 "decorators": [], 71 "loc": { 72 "start": { 73 "line": 18, 74 "column": 1 75 }, 76 "end": { 77 "line": 18, 78 "column": 2 79 } 80 } 81 }, 82 "right": { 83 "type": "BooleanLiteral", 84 "value": false, 85 "loc": { 86 "start": { 87 "line": 18, 88 "column": 5 89 }, 90 "end": { 91 "line": 18, 92 "column": 10 93 } 94 } 95 }, 96 "loc": { 97 "start": { 98 "line": 18, 99 "column": 1 100 }, 101 "end": { 102 "line": 18, 103 "column": 10 104 } 105 } 106 }, 107 "loc": { 108 "start": { 109 "line": 18, 110 "column": 1 111 }, 112 "end": { 113 "line": 18, 114 "column": 11 115 } 116 } 117 }, 118 { 119 "type": "ExpressionStatement", 120 "expression": { 121 "type": "UpdateExpression", 122 "operator": "++", 123 "prefix": false, 124 "argument": { 125 "type": "Identifier", 126 "name": "a", 127 "decorators": [], 128 "loc": { 129 "start": { 130 "line": 19, 131 "column": 1 132 }, 133 "end": { 134 "line": 19, 135 "column": 2 136 } 137 } 138 }, 139 "loc": { 140 "start": { 141 "line": 19, 142 "column": 1 143 }, 144 "end": { 145 "line": 19, 146 "column": 4 147 } 148 } 149 }, 150 "loc": { 151 "start": { 152 "line": 19, 153 "column": 1 154 }, 155 "end": { 156 "line": 19, 157 "column": 5 158 } 159 } 160 } 161 ], 162 "loc": { 163 "start": { 164 "line": 1, 165 "column": 1 166 }, 167 "end": { 168 "line": 20, 169 "column": 1 170 } 171 } 172} 173TypeError: An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type. [arithmetic_operators_63.ts:19:1] 174