[Issue 5713] Broken final switch on ints

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 11 15:37:34 PDT 2014


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

--- Comment #14 from bearophile_hugs at eml.cc ---
Another simple case worth supporting:


void main() {
    foreach (immutable i; 0 .. 3) {
        final switch (i) {
            case 0: break;
            case 1: break;
            case 2: break;
        }
    }
}

--


More information about the Digitalmars-d-bugs mailing list