[Issue 6227] Comparison of different enums
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat May 20 09:54:20 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=6227
Andrei Alexandrescu <andrei at erdani.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrei at erdani.com
--- Comment #3 from Andrei Alexandrescu <andrei at erdani.com> ---
With https://github.com/dlang/phobos/pull/5401 the recommended approach is:
Foo.x.asOriginalType == Bar.y.asOriginalType
i.e. compare the underlying types if that's what's needed. The plan is to fix
this bug by deprecating the current behavior. The error message will recommend
using asOriginalType.
--
More information about the Digitalmars-d-bugs
mailing list