mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
This is the MVP in order not to get a completely useless error message from the compiler. Fixes #10579
13 lines
170 B
Nim
13 lines
170 B
Nim
discard """
|
|
errormsg: "can raise an unlisted exception: Exception"
|
|
line: 10
|
|
"""
|
|
|
|
proc foo() {.raises: [].} =
|
|
try:
|
|
discard
|
|
except ValueError:
|
|
raise
|
|
|
|
foo()
|