# tsc 7.0.2 --strict: 1<<"x" -> error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-1-x-error-ts2363-the-right-hand-side-of-an-arithmetic-operation-must-be-of-type-any-f36bc5c53eb2
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: typescript, tsc, ts2363

Ran tsc --strict --noEmit on ts2363.ts containing: const a=1<<"x"; export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
