Closed ringabout closed 2 weeks ago
Thanks for the fix :)
Is it possible to [backport]
the commit into stable, by the way?
Thanks for your hard work on this PR! The lines below are statistics of the Nim compiler built from 262ff648aad7cc2062eb94cb6bf3357f9910c448
Hint: mm: orc; opt: speed; options: -d:release 178739 lines; 8.284s; 664.652MiB peakmem
fixes #23690
dest.e1.a.kind = src.e1.a.kind
changes the discrimant but it fails to clear the memory ofdest.e1.a
. Before using hooks for copying, we need to clear the dest, e.g.=wasMoved(dest.e1.a.c)
.