mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 23:05:27 +00:00
12
tests/js/t8821.nim
Normal file
12
tests/js/t8821.nim
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user