mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
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:
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()
|
||||
Reference in New Issue
Block a user