[Issue 23101] [std.sumtype] canMatch does not account ref

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 10 19:24:11 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23101

--- Comment #1 from João Lourenço <jlourenco5691 at gmail.com> ---
Because of this, when matching, `canMatch` will fail as it will test for a
copy, and returning a reference of that value results in escaping it.

--


More information about the Digitalmars-d-bugs mailing list