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



--- Comment #3 from Kenji Hara <k.hara...@gmail.com> 2011-08-21 07:00:55 PDT ---
More simple test case.

enum Foo : uint { A }
void main() {
    Foo foo;

    switch (foo) {
        enum op = "A";
        case Foo.A: break;
        default:    assert(0);
    }

    // Following gives same error
    //final switch (foo) {
    //    enum op = "A";
    //    case Foo.A: break;
    //}
}

The case statement treats the previous enum declaration as fall-through
statement and warns.

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

Reply via email to