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

Nick Treleaven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Nick Treleaven <[email protected]> ---
> Good good;
> switch (good) // by promotion replaced by  'cast(int) good'

Why is an enumeration type promoted to int? Just because it can implicitly
convert doesn't mean it should. The fact that the example with the enums that
don't have a base type do not promote to int shows this is inconsistent.

--

Reply via email to