summary refs log tree commit diff stats
path: root/tests/js/t8821.nim
blob: 43cf3f6f2a681786d98f2f7f90aa218fae99f1eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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)