fixes #11809
This commit is contained in:
parent
e3c0bf48c5
commit
04708742e7
5 changed files with 76 additions and 27 deletions
|
|
@ -535,7 +535,8 @@ proc markOwnerModuleAsUsed(c: PContext; s: PSym) =
|
|||
if module != nil and module != c.module:
|
||||
var i = 0
|
||||
while i <= high(c.unusedImports):
|
||||
if c.unusedImports[i][0] == module:
|
||||
let candidate = c.unusedImports[i][0]
|
||||
if candidate == module or c.exportIndirections.contains(idPairToInt(candidate.id, s.id)):
|
||||
# mark it as used:
|
||||
c.unusedImports.del(i)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue