Explicit generics

This commit is contained in:
SirOlaf
2024-03-16 20:26:03 +01:00
parent c4e18c79eb
commit 15b2c7eb3a
2 changed files with 2 additions and 4 deletions

View File

@@ -789,8 +789,8 @@ proc explicitGenericSym(c: PContext, n: PNode, s: PSym): PNode =
var newInst = generateInstance(c, s, m.bindings, n.info)
newInst.typ.flags.excl tfUnresolved
let info = getCallLineInfo(n)
markUsed(c, info, s)
onUse(info, s)
markUsed(c, info, newInst)
onUse(info, newInst)
result = newSymNode(newInst, info)
proc setGenericParams(c: PContext, n, expectedParams: PNode) =

View File

@@ -67,8 +67,6 @@ proc symChoice(c: PContext, n: PNode, s: PSym, r: TSymChoiceRule;
# for instance 'nextTry' is both in tables.nim and astalgo.nim ...
if not isField or sfGenSym notin s.flags:
result = newSymNode(s, info)
markUsed(c, info, s)
onUse(info, s)
else:
result = n
elif i == 0: