fixes yet another gensym regression (#12145)

This commit is contained in:
Andreas Rumpf 2019-09-06 00:45:00 +02:00 • committed by GitHub
commit 488f3ed085
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 10 deletions

View file

@ -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 =