This commit is contained in:
Araq 2013-09-10 22:04:12 +02:00
commit 275c7ccf82
5 changed files with 46 additions and 10 deletions

View file

@ -73,6 +73,8 @@ proc genericAssignAux(dest, src: Pointer, mt: PNimType, shallow: bool) =
# sequence reallocations:
var pint = cast[ptr PNimType](dest)
pint[] = cast[ptr PNimType](src)[]
if mt.base != nil:
genericAssignAux(dest, src, mt.base, shallow)
genericAssignAux(dest, src, mt.node, shallow)
of tyTuple:
genericAssignAux(dest, src, mt.node, shallow)