summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-12-05 19:49:37 +0100
committerAraq <rumpf_a@web.de>2018-12-05 19:49:37 +0100
commitbc8cea26727fd20ad75fa7f0cccbe39ddb4d4c0c (patch)
tree83c68c2afb9942ba29c4877a912d015d06a0142c /compiler/semstmts.nim
parent1711a60f7b3968285bb753b2e98bfc4638d32a44 (diff)
downloadNim-bc8cea26727fd20ad75fa7f0cccbe39ddb4d4c0c.tar.gz
fixes #9614 [backport]
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index e0542e1e7..48aa75528 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -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