fixes #9614 [backport]

This commit is contained in:
Araq
2018-12-05 19:49:37 +01:00
parent 1711a60f7b
commit bc8cea2672

View File

@@ -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