[Issue 9368] New: Final swith typedef'ed enum is not properly checked

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 22 10:50:07 PST 2013


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

           Summary: Final swith typedef'ed enum is not properly checked
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid, pull
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: andrej.mitrovich at gmail.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-22 10:50:04 PST ---
enum E
{
    a,
    b
}

void main()
{
    typedef E F;
    F f;
    final switch (f)
    {
        case F.a:
    }
}

$ dmd -d test.d
> 

It should error about a missing case. It's due to a typo in
SwitchStatement::semantic, a pull is coming shortly.

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