[Issue 4329] Do not show error messages that refer to __error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 31 05:47:30 PDT 2010


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



--- Comment #10 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list