mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
14 lines
225 B
Nim
14 lines
225 B
Nim
discard """
|
|
errormsg: "ValueError can raise an unlisted exception: ValueError"
|
|
line: 10
|
|
"""
|
|
{.push warningAsError[Effect]: on.}
|
|
proc foo() {.raises: [].} =
|
|
try:
|
|
discard
|
|
except ValueError:
|
|
raise
|
|
|
|
foo()
|
|
{.pop.}
|