parent
00b495de95
commit
544cb107c7
2 changed files with 17 additions and 0 deletions
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue