mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
* fix #8821 JS codegen can produce extreme switch statements with case a of range * remove totalRange
9 lines
126 B
Nim
9 lines
126 B
Nim
|
|
proc isInt32(i: int): bool =
|
|
case i
|
|
of 1 .. 70000:
|
|
return true
|
|
else:
|
|
return false
|
|
|
|
doAssert isInt32(1) == true |