diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-09-16 15:38:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 15:38:07 +0200 |
commit | 059a16b34dedca49be603fef40185cbfb8938bed (patch) | |
tree | 27ad23581cfc73d6f420d11c2ad31a676ad50975 /compiler/semtempl.nim | |
parent | 2a59f499e9f5a8aa8ad03891afd38f7641f52a49 (diff) | |
download | Nim-059a16b34dedca49be603fef40185cbfb8938bed.tar.gz |
fixes #12193 (#12199)
Diffstat (limited to 'compiler/semtempl.nim')
-rw-r--r-- | compiler/semtempl.nim | 3 |
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: |