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": "TSBooleanKeyword", 143 "loc": { 144 "start": { 145 "line": 18, 146 "column": 8 147 }, 148 "end": { 149 "line": 18, 150 "column": 15 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": 16 188 } 189 } 190 }, 191 { 192 "type": "ExpressionStatement", 193 "expression": { 194 "type": "AssignmentExpression", 195 "operator": "=", 196 "left": { 197 "type": "Identifier", 198 "name": "b", 199 "decorators": [], 200 "loc": { 201 "start": { 202 "line": 19, 203 "column": 1 204 }, 205 "end": { 206 "line": 19, 207 "column": 2 208 } 209 } 210 }, 211 "right": { 212 "type": "MemberExpression", 213 "object": { 214 "type": "Identifier", 215 "name": "a", 216 "decorators": [], 217 "loc": { 218 "start": { 219 "line": 19, 220 "column": 5 221 }, 222 "end": { 223 "line": 19, 224 "column": 6 225 } 226 } 227 }, 228 "property": { 229 "type": "NumberLiteral", 230 "value": 5, 231 "loc": { 232 "start": { 233 "line": 19, 234 "column": 7 235 }, 236 "end": { 237 "line": 19, 238 "column": 8 239 } 240 } 241 }, 242 "computed": true, 243 "optional": false, 244 "loc": { 245 "start": { 246 "line": 19, 247 "column": 5 248 }, 249 "end": { 250 "line": 19, 251 "column": 9 252 } 253 } 254 }, 255 "loc": { 256 "start": { 257 "line": 19, 258 "column": 1 259 }, 260 "end": { 261 "line": 19, 262 "column": 9 263 } 264 } 265 }, 266 "loc": { 267 "start": { 268 "line": 19, 269 "column": 1 270 }, 271 "end": { 272 "line": 19, 273 "column": 10 274 } 275 } 276 } 277 ], 278 "loc": { 279 "start": { 280 "line": 1, 281 "column": 1 282 }, 283 "end": { 284 "line": 20, 285 "column": 1 286 } 287 } 288} 289TypeError: Type 'number' is not assignable to type 'boolean'. [member_expression_64.ts:19:1] 290