[Issue 20876] generated constructor always inout regardless of ability of fields to use inout
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 2 05:18:56 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=20876
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #11 from Walter Bright <bugzilla at digitalmars.com> ---
What it could do is examine each field's copy constructor, and pick the most
restrictive annotation that is inclusive to all of them. If that doesn't work,
then fail.
--
More information about the Digitalmars-d-bugs
mailing list