[Issue 5713] Broken final switch on ints

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 23 22:57:53 PST 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |major


--- Comment #12 from bearophile_hugs at eml.cc 2012-12-23 22:57:35 PST ---
This issue was definitively mislabelled, this is clearly a bug, and even
significant. Bumped to major.



void main() {
    bool b;
    final switch (b) {
        case true:
            break;
    }
}

It compiles without errors.

At runtime gives:


core.exception.SwitchError at test(3): No appropriate switch clause found

-- 
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