[Issue 20539] std.conv.to: internal overload conflict for enums with base types that have a catch-all opEquals overload (?)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 27 20:41:28 UTC 2020


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

berni44 <bugzilla at d-ecke.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at d-ecke.de

--- Comment #1 from berni44 <bugzilla at d-ecke.de> ---
(In reply to asumface from comment #0)
> I believe both functions would handle this case correctly, not sure what
> constraints opEquals touches to create this pathological case.

opEquals is called by "is(typeof(value == OriginalType!T.init))" in the second
overload.

--


More information about the Digitalmars-d-bugs mailing list