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: nob...@puremagic.com ReportedBy: d...@dawgfoto.de --- Comment #0 from d...@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: -------