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.
@btw-aak▲ 4 net votes
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.