tuserpragma2.nim 229 B

123456789101112
  1. discard """
  2. errormsg: "can raise an unlisted exception: ref Exception"
  3. file: "tuserpragma2.nim"
  4. line: 11
  5. """
  6. # bug #7216
  7. {.pragma: my_pragma, raises: [].}
  8. proc test1 {.my_pragma.} =
  9. raise newException(Exception, "msg")