Skip to content

Commit

Permalink
rebasing mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Aug 26, 2024
1 parent 329b765 commit 2945dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/semtempl.nim
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ proc semTemplSymbol(c: var TemplCtx, n: PNode, s: PSym; isField, isAmbiguous: bo
if isAmbiguous:
# ambiguous types should be symchoices since lookup behaves
# differently for them in regular expressions
result = symChoice(c, n, s, scOpen, isField)
else: result = newSymNodeTypeDesc(s, c.idgen, n.info)
result = symChoice(c.c, n, s, scOpen, isField)
else: result = newSymNodeTypeDesc(s, c.c.idgen, n.info)
if not isField and not (s.owner == c.owner and
s.typ != nil and s.typ.kind == tyGenericParam) and
result.kind in {nkSym, nkOpenSymChoice}:
Expand Down

0 comments on commit 2945dd2

Please sign in to comment.