User pragmas hide effect specs bug fix. Fixes #7216 (#7217)

This commit is contained in:
cooldome 2018-02-27 02:03:49 +00:00 • committed by Andreas Rumpf
commit 0a8684db4c
2 changed files with 28 additions and 15 deletions

View file

@ -0,0 +1,11 @@
discard """
file: "tuserpragma2.nim"
line: 11
errormsg: "can raise an unlisted exception: ref Exception"
"""
# bug #7216
{.pragma: my_pragma, raises: [].}
proc test1 {.my_pragma.} =
raise newException(Exception, "msg")