teffects8.nim 213 B

1234567891011121314
  1. discard """
  2. errormsg: "can raise an unlisted exception: Exception"
  3. line: 10
  4. """
  5. {.push warningAsError[Effect]: on.}
  6. proc foo() {.raises: [].} =
  7. try:
  8. discard
  9. except ValueError:
  10. raise
  11. foo()
  12. {.pop.}