[Issue 9263] New: statement is not reachable when statement is reachable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 3 03:36:24 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9263
Summary: statement is not reachable when statement is reachable
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: deadalnix at gmail.com
--- Comment #0 from deadalnix <deadalnix at gmail.com> 2013-01-03 03:36:22 PST ---
enum E : uint
{
A,
B,
}
private string foobar(E e)
{
final switch (e) with (E) {
case A:
return "A";
case B:
return "B";
}
}
The final switch is not reachable according to dmd.
--
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