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



--- Comment #5 from bearophile_h...@eml.cc 2011-09-07 10:15:54 PDT ---
An example from Timon Gehr, this gives no compilation errors, and prints
nothing:


import std.stdio;
enum Mode { nothing, read, write }
void main() {
    final switch (Mode.read | Mode.write) {
        case Mode.nothing: writeln(0); break;
        case Mode.read:    writeln(1); break;
        case Mode.write:   writeln(2); break;
    }
}

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

Reply via email to