{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSNumberKeyword", "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 14 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } }, "init": null, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 6 } } } ], "kind": "var", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 15 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 2 } } }, "right": { "type": "NumberLiteral", "value": 5, "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 6 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 6 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "BinaryExpression", "operator": "/", "left": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 19, "column": 2 } } }, "right": { "type": "StringLiteral", "value": "foo", "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 10 } } }, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 19, "column": 10 } } }, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 19, "column": 11 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 20, "column": 1 } } } TypeError: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. [arithmetic_operators_24.ts:19:5]