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

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #2 from Walter Bright <[email protected]> ---
This is actually not a bug.

    enum S x = S(10);
    x.setValue(20);

is rewritten to be:

    S(10).setValue(20);

which is then rewritten to be:

    auto tmp = S(10);
    tmp.setValue(20);

which works as expected.

--

Reply via email to