owned refs must be moved
This commit is contained in:
parent
f8bf24623c
commit
5b1a2eecd5
4 changed files with 8 additions and 27 deletions
|
|
@ -1793,7 +1793,7 @@ when false:
|
|||
for i in 0 ..< n.safeLen:
|
||||
if n[i].containsNil: return true
|
||||
|
||||
template hasDestructor*(t: PType): bool = tfHasAsgn in t.flags
|
||||
template hasDestructor*(t: PType): bool = {tfHasAsgn, tfHasOwned} * t.flags != {}
|
||||
template incompleteType*(t: PType): bool =
|
||||
t.sym != nil and {sfForward, sfNoForward} * t.sym.flags == {sfForward}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue