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

RazvanN <[email protected]> changed:

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

--- Comment #5 from RazvanN <[email protected]> ---
I don't think this issues is valid. Typically, when defining an overload
operator all uses of that operator are redirected to the overload. That is what
happens in both of the provided examples (upcasting and downcasting). As for
the example of upcasting, one simply needs to avoid the explicit cast to make
it work.

This is all according to the spec and consistent across the other overloaded
operators.

Closing as invalid. Please reopen if I am missing something.

--

Reply via email to