fixes #5529; don't merge type visibility flags
This commit is contained in:
parent
98c7bab8ea
commit
142b604c13
2 changed files with 4 additions and 4 deletions
|
|
@ -1259,7 +1259,7 @@ proc assignType*(dest, src: PType) =
|
|||
# this fixes 'type TLock = TSysLock':
|
||||
if src.sym != nil:
|
||||
if dest.sym != nil:
|
||||
dest.sym.flags = dest.sym.flags + src.sym.flags
|
||||
dest.sym.flags = dest.sym.flags + (src.sym.flags-{sfExported})
|
||||
if dest.sym.annex == nil: dest.sym.annex = src.sym.annex
|
||||
mergeLoc(dest.sym.loc, src.sym.loc)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue