diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-09-06 00:45:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-06 00:45:00 +0200 |
commit | 488f3ed0852d877203b671887e291248bbbd0750 (patch) | |
tree | 8260ba1c31c4baedb124d6fa7c8ec3128d56fd8f /compiler/semtempl.nim | |
parent | 0882a09986b0e7d2be70cc034df80d8c322cdf75 (diff) | |
download | Nim-488f3ed0852d877203b671887e291248bbbd0750.tar.gz |
fixes yet another gensym regression (#12145)
Diffstat (limited to 'compiler/semtempl.nim')
-rw-r--r-- | compiler/semtempl.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim index 9f39a81ee..bb8748460 100644 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -251,15 +251,15 @@ proc semTemplSymbol(c: PContext, n: PNode, s: PSym; isField: bool): PNode = of OverloadableSyms: result = symChoice(c, n, s, scOpen, isField) of skGenericParam: - if isField: result = n + if isField and sfGenSym in s.flags: result = n else: result = newSymNodeTypeDesc(s, n.info) of skParam: result = n of skType: - if isField: result = n + if isField and sfGenSym in s.flags: result = n else: result = newSymNodeTypeDesc(s, n.info) else: - if isField: result = n + if isField and sfGenSym in s.flags: result = n else: result = newSymNode(s, n.info) proc semRoutineInTemplName(c: var TemplCtx, n: PNode): PNode = |