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 "decorators": [], 13 "loc": { 14 "start": { 15 "line": 17, 16 "column": 5 17 }, 18 "end": { 19 "line": 17, 20 "column": 6 21 } 22 } 23 }, 24 "init": { 25 "type": "ArrayExpression", 26 "elements": [ 27 { 28 "type": "NumberLiteral", 29 "value": 0, 30 "loc": { 31 "start": { 32 "line": 17, 33 "column": 10 34 }, 35 "end": { 36 "line": 17, 37 "column": 11 38 } 39 } 40 }, 41 { 42 "type": "NumberLiteral", 43 "value": 1, 44 "loc": { 45 "start": { 46 "line": 17, 47 "column": 13 48 }, 49 "end": { 50 "line": 17, 51 "column": 14 52 } 53 } 54 }, 55 { 56 "type": "NumberLiteral", 57 "value": 2, 58 "loc": { 59 "start": { 60 "line": 17, 61 "column": 16 62 }, 63 "end": { 64 "line": 17, 65 "column": 17 66 } 67 } 68 }, 69 { 70 "type": "NumberLiteral", 71 "value": 3, 72 "loc": { 73 "start": { 74 "line": 17, 75 "column": 19 76 }, 77 "end": { 78 "line": 17, 79 "column": 20 80 } 81 } 82 }, 83 { 84 "type": "NumberLiteral", 85 "value": 4, 86 "loc": { 87 "start": { 88 "line": 17, 89 "column": 22 90 }, 91 "end": { 92 "line": 17, 93 "column": 23 94 } 95 } 96 } 97 ], 98 "loc": { 99 "start": { 100 "line": 17, 101 "column": 9 102 }, 103 "end": { 104 "line": 17, 105 "column": 24 106 } 107 } 108 }, 109 "loc": { 110 "start": { 111 "line": 17, 112 "column": 5 113 }, 114 "end": { 115 "line": 17, 116 "column": 24 117 } 118 } 119 } 120 ], 121 "kind": "var", 122 "loc": { 123 "start": { 124 "line": 17, 125 "column": 1 126 }, 127 "end": { 128 "line": 17, 129 "column": 25 130 } 131 } 132 }, 133 { 134 "type": "VariableDeclaration", 135 "declarations": [ 136 { 137 "type": "VariableDeclarator", 138 "id": { 139 "type": "Identifier", 140 "name": "b", 141 "typeAnnotation": { 142 "type": "TSNumberKeyword", 143 "loc": { 144 "start": { 145 "line": 18, 146 "column": 8 147 }, 148 "end": { 149 "line": 18, 150 "column": 14 151 } 152 } 153 }, 154 "decorators": [], 155 "loc": { 156 "start": { 157 "line": 18, 158 "column": 5 159 }, 160 "end": { 161 "line": 18, 162 "column": 6 163 } 164 } 165 }, 166 "init": null, 167 "loc": { 168 "start": { 169 "line": 18, 170 "column": 5 171 }, 172 "end": { 173 "line": 18, 174 "column": 6 175 } 176 } 177 } 178 ], 179 "kind": "var", 180 "loc": { 181 "start": { 182 "line": 18, 183 "column": 1 184 }, 185 "end": { 186 "line": 18, 187 "column": 15 188 } 189 } 190 }, 191 { 192 "type": "VariableDeclaration", 193 "declarations": [ 194 { 195 "type": "VariableDeclarator", 196 "id": { 197 "type": "Identifier", 198 "name": "c", 199 "typeAnnotation": { 200 "type": "TSBooleanKeyword", 201 "loc": { 202 "start": { 203 "line": 19, 204 "column": 8 205 }, 206 "end": { 207 "line": 19, 208 "column": 15 209 } 210 } 211 }, 212 "decorators": [], 213 "loc": { 214 "start": { 215 "line": 19, 216 "column": 5 217 }, 218 "end": { 219 "line": 19, 220 "column": 6 221 } 222 } 223 }, 224 "init": null, 225 "loc": { 226 "start": { 227 "line": 19, 228 "column": 5 229 }, 230 "end": { 231 "line": 19, 232 "column": 6 233 } 234 } 235 } 236 ], 237 "kind": "var", 238 "loc": { 239 "start": { 240 "line": 19, 241 "column": 1 242 }, 243 "end": { 244 "line": 19, 245 "column": 16 246 } 247 } 248 }, 249 { 250 "type": "ExpressionStatement", 251 "expression": { 252 "type": "AssignmentExpression", 253 "operator": "=", 254 "left": { 255 "type": "Identifier", 256 "name": "b", 257 "decorators": [], 258 "loc": { 259 "start": { 260 "line": 20, 261 "column": 1 262 }, 263 "end": { 264 "line": 20, 265 "column": 2 266 } 267 } 268 }, 269 "right": { 270 "type": "MemberExpression", 271 "object": { 272 "type": "Identifier", 273 "name": "a", 274 "decorators": [], 275 "loc": { 276 "start": { 277 "line": 20, 278 "column": 5 279 }, 280 "end": { 281 "line": 20, 282 "column": 6 283 } 284 } 285 }, 286 "property": { 287 "type": "AssignmentExpression", 288 "operator": "=", 289 "left": { 290 "type": "Identifier", 291 "name": "c", 292 "decorators": [], 293 "loc": { 294 "start": { 295 "line": 20, 296 "column": 7 297 }, 298 "end": { 299 "line": 20, 300 "column": 8 301 } 302 } 303 }, 304 "right": { 305 "type": "NumberLiteral", 306 "value": 5, 307 "loc": { 308 "start": { 309 "line": 20, 310 "column": 11 311 }, 312 "end": { 313 "line": 20, 314 "column": 12 315 } 316 } 317 }, 318 "loc": { 319 "start": { 320 "line": 20, 321 "column": 7 322 }, 323 "end": { 324 "line": 20, 325 "column": 12 326 } 327 } 328 }, 329 "computed": true, 330 "optional": false, 331 "loc": { 332 "start": { 333 "line": 20, 334 "column": 5 335 }, 336 "end": { 337 "line": 20, 338 "column": 13 339 } 340 } 341 }, 342 "loc": { 343 "start": { 344 "line": 20, 345 "column": 1 346 }, 347 "end": { 348 "line": 20, 349 "column": 13 350 } 351 } 352 }, 353 "loc": { 354 "start": { 355 "line": 20, 356 "column": 1 357 }, 358 "end": { 359 "line": 20, 360 "column": 14 361 } 362 } 363 } 364 ], 365 "loc": { 366 "start": { 367 "line": 1, 368 "column": 1 369 }, 370 "end": { 371 "line": 21, 372 "column": 1 373 } 374 } 375} 376TypeError: Type 'number' is not assignable to type 'boolean'. [member_expression_68.ts:20:7] 377