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": "ChainExpression", 271 "expression": { 272 "type": "MemberExpression", 273 "object": { 274 "type": "Identifier", 275 "name": "a", 276 "decorators": [], 277 "loc": { 278 "start": { 279 "line": 20, 280 "column": 5 281 }, 282 "end": { 283 "line": 20, 284 "column": 6 285 } 286 } 287 }, 288 "property": { 289 "type": "AssignmentExpression", 290 "operator": "=", 291 "left": { 292 "type": "Identifier", 293 "name": "c", 294 "decorators": [], 295 "loc": { 296 "start": { 297 "line": 20, 298 "column": 9 299 }, 300 "end": { 301 "line": 20, 302 "column": 10 303 } 304 } 305 }, 306 "right": { 307 "type": "NumberLiteral", 308 "value": 5, 309 "loc": { 310 "start": { 311 "line": 20, 312 "column": 13 313 }, 314 "end": { 315 "line": 20, 316 "column": 14 317 } 318 } 319 }, 320 "loc": { 321 "start": { 322 "line": 20, 323 "column": 9 324 }, 325 "end": { 326 "line": 20, 327 "column": 14 328 } 329 } 330 }, 331 "computed": true, 332 "optional": true, 333 "loc": { 334 "start": { 335 "line": 20, 336 "column": 5 337 }, 338 "end": { 339 "line": 20, 340 "column": 15 341 } 342 } 343 }, 344 "loc": { 345 "start": { 346 "line": 20, 347 "column": 5 348 }, 349 "end": { 350 "line": 20, 351 "column": 15 352 } 353 } 354 }, 355 "loc": { 356 "start": { 357 "line": 20, 358 "column": 1 359 }, 360 "end": { 361 "line": 20, 362 "column": 15 363 } 364 } 365 }, 366 "loc": { 367 "start": { 368 "line": 20, 369 "column": 1 370 }, 371 "end": { 372 "line": 20, 373 "column": 16 374 } 375 } 376 } 377 ], 378 "loc": { 379 "start": { 380 "line": 1, 381 "column": 1 382 }, 383 "end": { 384 "line": 21, 385 "column": 1 386 } 387 } 388} 389TypeError: Type 'number' is not assignable to type 'boolean'. [member_expression_69.ts:20:9] 390