[Issue 3999] Enum equality to an int

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 13 17:07:00 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=3999



--- Comment #4 from bearophile_hugs at eml.cc 2011-06-13 17:02:20 PDT ---
This is related. This code gives no compilation errors with DMD 2.053, but it's
a reduced version of code that has caused me some troubles:


enum Foo { A, B }
void main() {
    char c = Foo.B;
}


Here I'd like an error like "cannot implicitly convert expression ... of type
... to ...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list