parent
49d1822c8f
commit
d56848878c
5 changed files with 25 additions and 5 deletions
|
|
@ -656,7 +656,7 @@ proc fillBody(c: var TLiftCtx; t: PType; body, x, y: PNode) =
|
|||
of tyTuple:
|
||||
fillBodyTup(c, t, body, x, y)
|
||||
of tyVarargs, tyOpenArray:
|
||||
if c.kind == attachedDestructor:
|
||||
if c.kind == attachedDestructor and (tfHasAsgn in t.flags or useNoGc(c, t)):
|
||||
forallElements(c, t, body, x, y)
|
||||
else:
|
||||
discard "cannot copy openArray"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue