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": "TSNumberKeyword", 14 "loc": { 15 "start": { 16 "line": 17, 17 "column": 8 18 }, 19 "end": { 20 "line": 17, 21 "column": 14 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": 15 59 } 60 } 61 }, 62 { 63 "type": "VariableDeclaration", 64 "declarations": [ 65 { 66 "type": "VariableDeclarator", 67 "id": { 68 "type": "ArrayPattern", 69 "elements": [ 70 { 71 "type": "AssignmentPattern", 72 "left": { 73 "type": "Identifier", 74 "name": "b", 75 "decorators": [], 76 "loc": { 77 "start": { 78 "line": 18, 79 "column": 6 80 }, 81 "end": { 82 "line": 18, 83 "column": 7 84 } 85 } 86 }, 87 "right": { 88 "type": "NumberLiteral", 89 "value": 6, 90 "loc": { 91 "start": { 92 "line": 18, 93 "column": 10 94 }, 95 "end": { 96 "line": 18, 97 "column": 11 98 } 99 } 100 }, 101 "loc": { 102 "start": { 103 "line": 18, 104 "column": 6 105 }, 106 "end": { 107 "line": 18, 108 "column": 11 109 } 110 } 111 }, 112 { 113 "type": "AssignmentPattern", 114 "left": { 115 "type": "Identifier", 116 "name": "c", 117 "decorators": [], 118 "loc": { 119 "start": { 120 "line": 18, 121 "column": 13 122 }, 123 "end": { 124 "line": 18, 125 "column": 14 126 } 127 } 128 }, 129 "right": { 130 "type": "NumberLiteral", 131 "value": 6, 132 "loc": { 133 "start": { 134 "line": 18, 135 "column": 17 136 }, 137 "end": { 138 "line": 18, 139 "column": 18 140 } 141 } 142 }, 143 "loc": { 144 "start": { 145 "line": 18, 146 "column": 13 147 }, 148 "end": { 149 "line": 18, 150 "column": 18 151 } 152 } 153 } 154 ], 155 "loc": { 156 "start": { 157 "line": 18, 158 "column": 5 159 }, 160 "end": { 161 "line": 18, 162 "column": 19 163 } 164 } 165 }, 166 "init": { 167 "type": "Identifier", 168 "name": "a", 169 "decorators": [], 170 "loc": { 171 "start": { 172 "line": 18, 173 "column": 22 174 }, 175 "end": { 176 "line": 18, 177 "column": 23 178 } 179 } 180 }, 181 "loc": { 182 "start": { 183 "line": 18, 184 "column": 5 185 }, 186 "end": { 187 "line": 18, 188 "column": 23 189 } 190 } 191 } 192 ], 193 "kind": "var", 194 "loc": { 195 "start": { 196 "line": 18, 197 "column": 1 198 }, 199 "end": { 200 "line": 18, 201 "column": 24 202 } 203 } 204 } 205 ], 206 "loc": { 207 "start": { 208 "line": 1, 209 "column": 1 210 }, 211 "end": { 212 "line": 18, 213 "column": 24 214 } 215 } 216} 217TypeError: Type number must have a '[Symbol.iterator]()' method that returns an iterator. [arrayDestructuring14.ts:18:5] 218