summary refs log tree commit diff stats
path: root/compiler/semgnrc.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-25 17:22:41 +0100
committerAraq <rumpf_a@web.de>2014-12-25 17:22:41 +0100
commit9280473eb149eba2bd7fda1c3b2925a8ce7831e8 (patch)
treec7ff4658986a0812ac7067d10ae04adae7ac9370 /compiler/semgnrc.nim
parent8325c711729403d7dbe908be1946eb1af8f0f266 (diff)
downloadNim-9280473eb149eba2bd7fda1c3b2925a8ce7831e8.tar.gz
fixes #1120
Diffstat (limited to 'compiler/semgnrc.nim')
-rw-r--r--compiler/semgnrc.nim2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/semgnrc.nim b/compiler/semgnrc.nim
index 723789a31..7c32b0051 100644
--- a/compiler/semgnrc.nim
+++ b/compiler/semgnrc.nim
@@ -48,7 +48,6 @@ proc semGenericStmtSymbol(c: PContext, n: PNode, s: PSym,
   of skTemplate:
     if macroToExpand(s):
       styleCheckUse(n.info, s)
-      let n = fixImmediateParams(n)
       result = semTemplateExpr(c, n, s, {efNoSemCheck})
       result = semGenericStmt(c, result, {}, ctx)
     else:
@@ -185,7 +184,6 @@ proc semGenericStmt(c: PContext, n: PNode,
       of skTemplate:
         if macroToExpand(s):
           styleCheckUse(fn.info, s)
-          let n = fixImmediateParams(n)
           result = semTemplateExpr(c, n, s, {efNoSemCheck})
           result = semGenericStmt(c, result, {}, ctx)
         else: