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": "TSParenthesizedType", 14 "typeAnnotation": { 15 "type": "TSUnionType", 16 "types": [ 17 { 18 "type": "TSStringKeyword", 19 "loc": { 20 "start": { 21 "line": 17, 22 "column": 9 23 }, 24 "end": { 25 "line": 17, 26 "column": 15 27 } 28 } 29 }, 30 { 31 "type": "TSNumberKeyword", 32 "loc": { 33 "start": { 34 "line": 17, 35 "column": 16 36 }, 37 "end": { 38 "line": 17, 39 "column": 22 40 } 41 } 42 } 43 ], 44 "loc": { 45 "start": { 46 "line": 17, 47 "column": 9 48 }, 49 "end": { 50 "line": 17, 51 "column": 22 52 } 53 } 54 }, 55 "loc": { 56 "start": { 57 "line": 17, 58 "column": 8 59 }, 60 "end": { 61 "line": 17, 62 "column": 23 63 } 64 } 65 }, 66 "decorators": [], 67 "loc": { 68 "start": { 69 "line": 17, 70 "column": 5 71 }, 72 "end": { 73 "line": 17, 74 "column": 6 75 } 76 } 77 }, 78 "init": null, 79 "loc": { 80 "start": { 81 "line": 17, 82 "column": 5 83 }, 84 "end": { 85 "line": 17, 86 "column": 6 87 } 88 } 89 } 90 ], 91 "kind": "var", 92 "loc": { 93 "start": { 94 "line": 17, 95 "column": 1 96 }, 97 "end": { 98 "line": 17, 99 "column": 24 100 } 101 } 102 }, 103 { 104 "type": "VariableDeclaration", 105 "declarations": [ 106 { 107 "type": "VariableDeclarator", 108 "id": { 109 "type": "Identifier", 110 "name": "b", 111 "typeAnnotation": { 112 "type": "TSNumberKeyword", 113 "loc": { 114 "start": { 115 "line": 18, 116 "column": 8 117 }, 118 "end": { 119 "line": 18, 120 "column": 14 121 } 122 } 123 }, 124 "decorators": [], 125 "loc": { 126 "start": { 127 "line": 18, 128 "column": 5 129 }, 130 "end": { 131 "line": 18, 132 "column": 6 133 } 134 } 135 }, 136 "init": null, 137 "loc": { 138 "start": { 139 "line": 18, 140 "column": 5 141 }, 142 "end": { 143 "line": 18, 144 "column": 6 145 } 146 } 147 } 148 ], 149 "kind": "var", 150 "loc": { 151 "start": { 152 "line": 18, 153 "column": 1 154 }, 155 "end": { 156 "line": 18, 157 "column": 15 158 } 159 } 160 }, 161 { 162 "type": "ExpressionStatement", 163 "expression": { 164 "type": "BinaryExpression", 165 "operator": "in", 166 "left": { 167 "type": "Identifier", 168 "name": "a", 169 "decorators": [], 170 "loc": { 171 "start": { 172 "line": 19, 173 "column": 1 174 }, 175 "end": { 176 "line": 19, 177 "column": 2 178 } 179 } 180 }, 181 "right": { 182 "type": "Identifier", 183 "name": "b", 184 "decorators": [], 185 "loc": { 186 "start": { 187 "line": 19, 188 "column": 6 189 }, 190 "end": { 191 "line": 19, 192 "column": 7 193 } 194 } 195 }, 196 "loc": { 197 "start": { 198 "line": 19, 199 "column": 1 200 }, 201 "end": { 202 "line": 19, 203 "column": 7 204 } 205 } 206 }, 207 "loc": { 208 "start": { 209 "line": 19, 210 "column": 1 211 }, 212 "end": { 213 "line": 19, 214 "column": 8 215 } 216 } 217 } 218 ], 219 "loc": { 220 "start": { 221 "line": 1, 222 "column": 1 223 }, 224 "end": { 225 "line": 20, 226 "column": 1 227 } 228 } 229} 230TypeError: The right-hand side of an 'in' expression must not be a primitive. [in_10.ts:19:6] 231