Fix handling of reraise in effect tracking (#10582)
This is the MVP in order not to get a completely useless error message from the compiler. Fixes #10579
This commit is contained in:
parent
c95616f6ee
commit
f23b0a7dc8
2 changed files with 23 additions and 5 deletions
12
tests/effects/teffects8.nim
Normal file
12
tests/effects/teffects8.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
discard """
|
||||
errormsg: "can raise an unlisted exception: Exception"
|
||||
line: 10
|
||||
"""
|
||||
|
||||
proc foo() {.raises: [].} =
|
||||
try:
|
||||
discard
|
||||
except ValueError:
|
||||
raise
|
||||
|
||||
foo()
|
||||
Loading…
Add table
Add a link
Reference in a new issue