[Issue 16586] Implicit casting of enum with explicit int base type fails

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 3 15:10:23 PDT 2016


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

--- Comment #1 from m.bierlee at lostmoment.com ---
Current work-around is to explicitly cast all enum members:
int[] ints = [cast(int) IntTypeEnumOne.bla, cast(int) IntTypeEnumTwo.bleh];

--


More information about the Digitalmars-d-bugs mailing list