* fix #6497

* add testcase for #16027
This commit is contained in:
flywind
2020-11-18 15:56:31 +08:00
committed by GitHub
parent e6e1e9574d
commit 581bcfe290
2 changed files with 14 additions and 0 deletions

View File

@@ -1441,6 +1441,7 @@ proc copySym*(s: PSym; id: ItemId): PSym =
result.position = s.position
result.loc = s.loc
result.annex = s.annex # BUGFIX
result.constraint = s.constraint
if result.kind in {skVar, skLet, skField}:
result.guard = s.guard
result.bitsize = s.bitsize