[Issue 14269] Enum is not implicitly converted to base type when using ref

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 12 13:26:13 PDT 2015


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

Steven Schveighoffer <schveiguy at yahoo.com> changed:

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

--- Comment #33 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Andrei Alexandrescu from comment #32)

> Code that attempts to convert an lvalue of enum type to a ref to its base
> type is wrong. The compiler shouldn't accept it. Correcting it qualifies as
> a simple bug fix.

OK, so that is what already happened. I don't agree with it, but I don't see
that it is worth having a battle over.

--


More information about the Digitalmars-d-bugs mailing list