Files
Nim/tests/js/t8821.nim
Bung b286448a99 fix #8821 JS codegen can produce extreme switch statements with case … (#20548)
* fix #8821 JS codegen can produce extreme switch statements with case a of range

* remove totalRange
2022-10-14 12:21:02 +02:00

9 lines
126 B
Nim

proc isInt32(i: int): bool =
case i
of 1 .. 70000:
return true
else:
return false
doAssert isInt32(1) == true