* fix #8821 JS codegen can produce extreme switch statements with case a of range * remove totalRange
This commit is contained in:
parent
07b645342a
commit
b286448a99
2 changed files with 2 additions and 10 deletions
|
|
@ -1,6 +1,3 @@
|
|||
discard """
|
||||
errormsg: "Your case statement contains too many branches, consider using if/else instead!"
|
||||
"""
|
||||
|
||||
proc isInt32(i: int): bool =
|
||||
case i
|
||||
|
|
@ -9,4 +6,4 @@ proc isInt32(i: int): bool =
|
|||
else:
|
||||
return false
|
||||
|
||||
discard isInt32(1)
|
||||
doAssert isInt32(1) == true
|
||||
Loading…
Add table
Add a link
Reference in a new issue