solang icon indicating copy to clipboard operation
solang copied to clipboard

Overflow checking in constant arithmetic

Open LucasSte opened this issue 4 years ago • 0 comments

There should be overflow checking in arithmetic operations using constants. E.g. uint8 = 128 + 128 should raise an error.

Ideally, this check can be done in function eval_const_number in src/sema.

LucasSte avatar Apr 20 '22 11:04 LucasSte