From 059a16b34dedca49be603fef40185cbfb8938bed Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 16 Sep 2019 15:38:07 +0200 Subject: fixes #12193 (#12199) --- compiler/semtempl.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/semtempl.nim') 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: -- cgit 1.4.1-2-gfad0