[Issue 17803] std.typecons.Tuple: opAssign should return ref Tuple

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 7 06:25:16 UTC 2017


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

Simen Kjaeraas <simen.kjaras at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, trivial

--- Comment #1 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
Apparently I wasn't paying attention when filing this. The above code should
be:

    Tuple!int foo() {
        Tuple!int a;
        return a = tuple(3);
    }

--


More information about the Digitalmars-d-bugs mailing list