[Issue 7113] New: Final switch does not work with shared enum value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 15 06:18:24 PST 2011


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

           Summary: Final switch does not work with shared enum value
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dawg at dawgfoto.de


--- Comment #0 from dawg at dawgfoto.de 2011-12-15 06:18:21 PST ---
enum State
{
    A,
    B,
}

shared State state;

void main()
{
    final switch (state)
    {
    case State.A: break;
    case State.B: break;
    }
}
---
bug.d(11): Error: enum member A not represented in final switch
bug.d(11): Error: enum member B not represented in final switch
---

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