=copy
and =sink
not called in instantiation of forward-declared generic proc
#18030
Labels
=copy
and =sink
not called in instantiation of forward-declared generic proc
#18030
When a generic proc is invoked before its implementation is defined,
=copy
and=sink
will not be called for any assignments that occur within the proc's implementation.Example
Current Output
Expected Output
(or, if
echo b.n
is commented out):Additional Information
This appears to be a regression that was introduced between Nim 1.0.0 and 1.2.0 (according to the playground).
The text was updated successfully, but these errors were encountered: