[Issue 14269] Enum is not implicitly converted to base type when using ref
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Mar 10 08:33:59 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14269
--- Comment #10 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
Personally, I think that all operations that the compiler can't guarantee will
result in a valid enum value for an enum type should result in the base type of
the enum rather than the enum type - without that, stuff like final switch is
completely broken - but there's definitely dissent on that, and it's been
argued about in the newsgroup.
--
More information about the Digitalmars-d-bugs
mailing list