improvement for 'unused import' warnings
This commit is contained in:
parent
23c44f009a
commit
fc7fe636e2
2 changed files with 2 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ proc symChoice(c: PContext, n: PNode, s: PSym, r: TSymChoiceRule;
|
|||
while a != nil:
|
||||
if a.kind != skModule and (not isField or sfGenSym notin s.flags):
|
||||
incl(a.flags, sfUsed)
|
||||
markOwnerModuleAsUsed(c, a)
|
||||
addSon(result, newSymNode(a, info))
|
||||
onUse(info, a)
|
||||
a = nextOverloadIter(o, c, n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue