www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7113] New: Final switch does not work with shared enum value

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: dawg dawgfoto.de



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: -------
Dec 15 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7113


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |WORKSFORME



15:53:16 PST ---
Fixed since 2.060

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