Thread overview
[Issue 18744] Class l-values can be implicitly converted to `Object` l-values, even in safe code
Apr 07, 2018
Stefan
Dec 17, 2022
Iain Buclaw
Apr 03, 2023
RazvanN
April 07, 2018
https://issues.dlang.org/show_bug.cgi?id=18744

Stefan <kdevel@vogtner.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kdevel@vogtner.de

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18744

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--
April 03, 2023
https://issues.dlang.org/show_bug.cgi?id=18744

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
Using latest dmd master I get:

test2.d(7): Error: `cast(Object)a` is not an lvalue and cannot be modified
test2.d(8): Error: conditional expression `true ? cast(Object)a :
cast(Object)b` is not a modifiable lvalue

So this seems to have been fixed.

--