[Issue 20876] generated constructor always inout regardless of ability of fields to use inout

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 10 22:16:01 UTC 2024


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

--- Comment #14 from Walter Bright <bugzilla at digitalmars.com> ---
Even smaller test case:

struct S {
    this(ref S) { }
}

struct T {
    S s;
}

void test()
{
    T t;
    T u = t;
}

--


More information about the Digitalmars-d-bugs mailing list