mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-18 19:14:56 +00:00
allow non-pragma special words as user pragmas (#22526)
allow non-pragma special words as macro pragmas
fixes #22525
(cherry picked from commit 602f537eb2)
This commit is contained in:
@@ -68,3 +68,8 @@ block: # issue #10994
|
||||
|
||||
proc a {.bar.} = discard # works
|
||||
proc b {.bar, foo.} = discard # doesn't
|
||||
|
||||
block: # issue #22525
|
||||
macro catch(x: typed) = x
|
||||
proc thing {.catch.} = discard
|
||||
thing()
|
||||
|
||||
Reference in New Issue
Block a user