[Issue 10560] Enum typed as int with value equal to 0 or 1 prefer bool over int overload
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 25 15:37:51 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=10560
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |industry
Status|RESOLVED |REOPENED
CC| |razvan.nitu1305 at gmail.com
Resolution|INVALID |---
--- Comment #5 from RazvanN <razvan.nitu1305 at gmail.com> ---
Upon discussion with Andrei, an enumerated value is not a literal, hence it is
subject to regular type checking and cannot be polysemous. See also
https://issues.dlang.org/show_bug.cgi?id=19399 which is causing trouble in
industrial application.
--
More information about the Digitalmars-d-bugs
mailing list