diff options
author | cooldome <cdome@bk.ru> | 2018-02-27 02:03:49 +0000 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-02-27 03:03:49 +0100 |
commit | 0a8684db4cf3aa5c6fe8bd1b3abad83a24ad33bf (patch) | |
tree | 4fd644547b307cc14d780db9a3a65bcef86a5ff0 /tests/pragmas | |
parent | d81568fcd56b24db02de4e3d8c21913ce239438d (diff) | |
download | Nim-0a8684db4cf3aa5c6fe8bd1b3abad83a24ad33bf.tar.gz |
User pragmas hide effect specs bug fix. Fixes #7216 (#7217)
Diffstat (limited to 'tests/pragmas')
-rw-r--r-- | tests/pragmas/tuserpragma2.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pragmas/tuserpragma2.nim b/tests/pragmas/tuserpragma2.nim new file mode 100644 index 000000000..bf8844e66 --- /dev/null +++ b/tests/pragmas/tuserpragma2.nim @@ -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") |