aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/reassign_from_own_child.zc
Commit message (Collapse)AuthorAgeFilesLines
* destructors: reassigning an m owner that still holds a value frees the old ↵Gravatar zinc 13 days1-0/+6
value first, running its drop (right side first, then the free, then the store), with hint: x: reassigning frees the old value; a new value that is part of the old one is an error; u, d and captured owners keep the leak error; the new value's size, leaf type and drop are recorded like a declaration's; spec 6.8.5, 6.15.2