From bc8cea26727fd20ad75fa7f0cccbe39ddb4d4c0c Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 5 Dec 2018 19:49:37 +0100 Subject: fixes #9614 [backport] --- compiler/semstmts.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') 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 -- cgit 1.4.1-2-gfad0