t8821.nim 227 B

123456789101112
  1. discard """
  2. errormsg: "Your case statement contains too many branches, consider using if/else instead!"
  3. """
  4. proc isInt32(i: int): bool =
  5. case i
  6. of 1 .. 70000:
  7. return true
  8. else:
  9. return false
  10. discard isInt32(1)