summary refs log tree commit diff stats
path: root/compiler/semtempl.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-09-16 15:38:07 +0200
committerGitHub <noreply@github.com>2019-09-16 15:38:07 +0200
commit059a16b34dedca49be603fef40185cbfb8938bed (patch)
tree27ad23581cfc73d6f420d11c2ad31a676ad50975 /compiler/semtempl.nim
parent2a59f499e9f5a8aa8ad03891afd38f7641f52a49 (diff)
downloadNim-059a16b34dedca49be603fef40185cbfb8938bed.tar.gz
fixes #12193 (#12199)
Diffstat (limited to 'compiler/semtempl.nim')
-rw-r--r--compiler/semtempl.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim
index 8c39a7676..0b1be5abf 100644
--- a/compiler/semtempl.nim
+++ b/compiler/semtempl.nim
@@ -639,8 +639,7 @@ proc semTemplateDef(c: PContext, n: PNode): PNode =
     for i in 1 .. s.typ.n.len-1:
       let param = s.typ.n.sons[i].sym
       param.flags.incl sfTemplateParam
-      if optNimV019 in c.config.globalOptions:
-        param.flags.excl sfGenSym
+      param.flags.excl sfGenSym
       if param.typ.kind != tyUntyped: allUntyped = false
     if len(gp) > 0:
       if n.sons[genericParamsPos].kind == nkEmpty: