[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 05:16:13 PDT 2015


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

--- Comment #22 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
I think that allowing an implicit conversion to be used with a ref parameter is
a clear violation of the type system. If we want to fix it via deprecation
rather than immediately making it an error like we'd normally do with an
"accepts-invalid" bug on the theory that the code actually works in spite of
violating the type system, then fine. But I don't think that it's at all a good
idea to leave the code as valid long term.

--


More information about the Digitalmars-d-bugs mailing list