fix #18627(Program segfaults with ARC when using openArray[string]) (#18713)
* fix #18627 * add testcase * rename * another * remove tyVarargs
This commit is contained in:
parent
8fa0decf6b
commit
13b9729183
2 changed files with 25 additions and 1 deletions
|
|
@ -1595,7 +1595,7 @@ proc propagateToOwner*(owner, elem: PType; propagateHasAsgn = true) =
|
|||
if mask != {} and propagateHasAsgn:
|
||||
let o2 = owner.skipTypes({tyGenericInst, tyAlias, tySink})
|
||||
if o2.kind in {tyTuple, tyObject, tyArray,
|
||||
tySequence, tySet, tyDistinct, tyOpenArray, tyVarargs}:
|
||||
tySequence, tySet, tyDistinct}:
|
||||
o2.flags.incl mask
|
||||
owner.flags.incl mask
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue