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

Kenji Hara <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Kenji Hara <[email protected]> ---
With class types, the possibility of implicit class reference conversion from
derived D to base class B is always determined in type system.
In other words, conversion from immutable D to mutable B is a defined but
disabled by default, and 'alias this' cannot override it.
(Note that 'alias this' is invoked when the conversion is _not_ defined)

So, 'alias this' never be considered in the case, and this is invalid issue.

--

Reply via email to