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

Kenji Hara <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Severity|major                       |normal

--- Comment #2 from Kenji Hara <[email protected]> ---
(In reply to Temtaime from comment #1)
> If this(T[] arg) {} is overloaded then error is gone. But it's strange in
> any case.

A first field assignment inside constructor is implicitly translated to the
field initializing. So the line `_a = d;` does not see opAssign.

http://dlang.org/class#field-init

But, I agree the diagnostic message is not good to understand what's the
problem.

--

Reply via email to