mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
fixes #9614 [backport]
This commit is contained in:
@@ -1268,7 +1268,7 @@ proc semProcAnnotation(c: PContext, prc: PNode;
|
||||
x.add(prc)
|
||||
|
||||
# recursion assures that this works for multiple macro annotations too:
|
||||
var r = semOverloadedCall(c, x, x, {skMacro}, {efNoUndeclared})
|
||||
var r = semOverloadedCall(c, x, x, {skMacro, skTemplate}, {efNoUndeclared})
|
||||
if r == nil:
|
||||
# Restore the old list of pragmas since we couldn't process this
|
||||
prc.sons[pragmasPos] = n
|
||||
|
||||
Reference in New Issue
Block a user