[Issue 18744] Class l-values can be implicitly converted to `Object` l-values, even in safe code

2023-04-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18744

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #1 from RazvanN  ---
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.

--


[Issue 18744] Class l-values can be implicitly converted to `Object` l-values, even in safe code

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18744

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P2

--


[Issue 18744] Class l-values can be implicitly converted to `Object` l-values, even in safe code

2018-04-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18744

Stefan  changed:

   What|Removed |Added

 CC||kde...@vogtner.de

--