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



--- Comment #10 from bearophile_h...@eml.cc 2010-07-31 05:47:27 PDT ---
One case:

void main() {
    enum Foo { E }
    Foo f;
    switch (f) {
        case 1: break;
        default: break;
    }
}


dmd 2.047 prints:
test.d(5): Error: cannot implicitly convert expression (1) of type int to Foo
test.d(5): Error: case must be a string or an integral constant, not __error

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

Reply via email to