fixes #5529; don't merge type visibility flags

This commit is contained in:
Araq 2017-03-14 15:55:23 +01:00
commit 142b604c13
2 changed files with 4 additions and 4 deletions

View file

@ -227,7 +227,7 @@ proc getLib(c: PContext, kind: TLibKind, path: PNode): PLib =
for it in c.libs:
if it.kind == kind and trees.exprStructuralEquivalent(it.path, path):
return it
result = newLib(kind)
result.path = path
c.libs.add result