www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22038] New: final switch error message should report all

https://issues.dlang.org/show_bug.cgi?id=22038

          Issue ID: 22038
           Summary: final switch error message should report all missing
                    enum members
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dkorpel live.nl

When turning a normal switch into a final switch, I often go through this
sequence:

- recompile
- Error: `enum` member `A` not represented in `final switch`
- add case for A
- recompile
- Error: `enum` member `B` not represented in `final switch`
- add case for B
- recompile
- Error: `enum` member `C` not represented in `final switch`

etc. It would be more convenient if the compiler didn't stop at the first
missing member.

--
Jun 18