(cherry picked from commit 544cb107c7)
This commit is contained in:
flywind
2020-11-02 17:41:44 +08:00
committed by narimiran
parent b238c077a1
commit 45e87ade15
2 changed files with 17 additions and 0 deletions

12
tests/js/t8821.nim Normal file
View 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)