You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
proc`++`(n: varint) =
n +=1type
r =range[ 0..15 ]
var a: r =15++a
echo a
this code should have thrown an error because I'm trying to assign a variable a value larger than possible, but it just goes beyond the allowed limits without error
Nim Version
Nim Compiler Version 2.0.8 [Linux: amd64]
Current Output
16
Expected Output
sysFatal
Error: unhandled exception: over- or underflow [OverflowDefect]