summary refs log tree commit diff stats
path: root/compiler/evaltempl.nim
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-05-29 22:21:51 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-05-29 22:21:51 +0200
commit5b27b263fd76484fa6251ccd29520c2764b55818 (patch)
tree0629164266d4183ace4503d77f0d2a999fc9693f /compiler/evaltempl.nim
parenteb471acffb02ebb14ada8483f8c8043a1c8e8210 (diff)
downloadNim-5b27b263fd76484fa6251ccd29520c2764b55818.tar.gz
Remove immediate pragma (#11308)
* remove immediate from tests
* remove immediate from the compiler
Diffstat (limited to 'compiler/evaltempl.nim')
-rw-r--r--compiler/evaltempl.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/evaltempl.nim b/compiler/evaltempl.nim
index a7d319360..8acb85907 100644
--- a/compiler/evaltempl.nim
+++ b/compiler/evaltempl.nim
@@ -104,7 +104,7 @@ proc evalTemplateArgs(n: PNode, s: PSym; conf: ConfigRef; fromHlo: bool): PNode
     # their bodies. We could try to fix this, but it may be
     # wiser to just deprecate immediate templates and macros
     # now that we have working untyped parameters.
-    genericParams = if sfImmediate in s.flags or fromHlo: 0
+    genericParams = if fromHlo: 0
                     else: s.ast[genericParamsPos].len
     expectedRegularParams = s.typ.len-1
     givenRegularParams = totalParams - genericParams