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

--- Comment #9 from deadalnix <[email protected]> ---
Update :

It turns out DMD has the intended behavior. However, the spec need to be fixed.

a += b do not decay as a = cast(typeof(a)) (a + b) but as :

((ref i, auto ref j) => i = cast(typeof(i)) (i + j))(a, b);

--

Reply via email to