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": 7 18 }, 19 "end": { 20 "line": 17, 21 "column": 13 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": 14 59 } 60 } 61 }, 62 { 63 "type": "ExpressionStatement", 64 "expression": { 65 "type": "AssignmentExpression", 66 "operator": "=", 67 "left": { 68 "type": "ArrayPattern", 69 "elements": [ 70 { 71 "type": "AssignmentPattern", 72 "left": { 73 "type": "Identifier", 74 "name": "a", 75 "decorators": [], 76 "loc": { 77 "start": { 78 "line": 18, 79 "column": 2 80 }, 81 "end": { 82 "line": 18, 83 "column": 3 84 } 85 } 86 }, 87 "right": { 88 "type": "StringLiteral", 89 "value": "foo", 90 "loc": { 91 "start": { 92 "line": 18, 93 "column": 6 94 }, 95 "end": { 96 "line": 18, 97 "column": 11 98 } 99 } 100 }, 101 "loc": { 102 "start": { 103 "line": 18, 104 "column": 2 105 }, 106 "end": { 107 "line": 18, 108 "column": 11 109 } 110 } 111 } 112 ], 113 "loc": { 114 "start": { 115 "line": 18, 116 "column": 1 117 }, 118 "end": { 119 "line": 18, 120 "column": 12 121 } 122 } 123 }, 124 "right": { 125 "type": "ArrayExpression", 126 "elements": [], 127 "loc": { 128 "start": { 129 "line": 18, 130 "column": 15 131 }, 132 "end": { 133 "line": 18, 134 "column": 17 135 } 136 } 137 }, 138 "loc": { 139 "start": { 140 "line": 18, 141 "column": 1 142 }, 143 "end": { 144 "line": 18, 145 "column": 17 146 } 147 } 148 }, 149 "loc": { 150 "start": { 151 "line": 18, 152 "column": 1 153 }, 154 "end": { 155 "line": 18, 156 "column": 18 157 } 158 } 159 } 160 ], 161 "loc": { 162 "start": { 163 "line": 1, 164 "column": 1 165 }, 166 "end": { 167 "line": 18, 168 "column": 18 169 } 170 } 171} 172TypeError: Type 'string' is not assignable to type 'number'. [arrayDestructuring31.ts:18:2] 173