* fix #8821 JS codegen can produce extreme switch statements with case a of range * remove totalRange
9 lines
No EOL
126 B
Nim
9 lines
No EOL
126 B
Nim
|
|
proc isInt32(i: int): bool =
|
|
case i
|
|
of 1 .. 70000:
|
|
return true
|
|
else:
|
|
return false
|
|
|
|
doAssert isInt32(1) == true |