From 2945dd289ce843dc2e872705de8d193359cc1794 Mon Sep 17 00:00:00 2001 From: metagn Date: Mon, 26 Aug 2024 08:39:28 +0300 Subject: [PATCH] rebasing mistake --- compiler/semtempl.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim index db28134df4cc..aef0ce9b370c 100644 --- a/compiler/semtempl.nim +++ b/compiler/semtempl.nim @@ -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}: