mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-25 00:35:26 +00:00
fixes #23355
This commit is contained in:
11
tests/errmsgs/t23355.nim
Normal file
11
tests/errmsgs/t23355.nim
Normal file
@@ -0,0 +1,11 @@
|
||||
discard """
|
||||
errormsg: "{.pop.} without a corresponding {.push.}"
|
||||
"""
|
||||
|
||||
block:
|
||||
{.push raises: [].}
|
||||
|
||||
proc f() =
|
||||
{.pop.}
|
||||
|
||||
proc g() = raise newException(ValueError, "")
|
||||
Reference in New Issue
Block a user