mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
12 lines
227 B
Nim
12 lines
227 B
Nim
discard """
|
|
errormsg: "Your case statement contains too many branches, consider using if/else instead!"
|
|
"""
|
|
|
|
proc isInt32(i: int): bool =
|
|
case i
|
|
of 1 .. 70000:
|
|
return true
|
|
else:
|
|
return false
|
|
|
|
discard isInt32(1) |