Skip to content

Commit

Permalink
test #24378
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Oct 29, 2024
1 parent 815bbf0 commit 7247067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/ast.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ proc propagateToOwner*(owner, elem: PType; propagateHasAsgn = true) =
if elem.isMetaType:
owner.flags.incl tfHasMeta

let mask = elem.flags * {tfHasAsgn, tfHasOwned}
let mask = elem.skipTypes({tyGenericInst, tyAlias, tySink}).flags * {tfHasAsgn, tfHasOwned}
if mask != {} and propagateHasAsgn:
let o2 = owner.skipTypes({tyGenericInst, tyAlias, tySink})
if o2.kind in {tyTuple, tyObject, tyArray,
Expand Down

0 comments on commit 7247067

Please sign in to comment.