[Issue 5713] Broken final switch on ints
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 24 04:09:30 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5713
Denis <verylonglogin.reg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #8 from Denis <verylonglogin.reg at gmail.com> 2012-01-24 15:09:27 MSK ---
As bearophile wrote in issue 6060 description:
>in 5713 I don't like an error message (and I'd like the compiler to enforce the presence of the cases for 0,1, and 2)
So this issue requires the following function be compilable _iff_ every `case`
is present:
---
void f(int x) {
final switch (x % 3) {
case -2:
case -1:
case 0:
case 1:
case 2:
}
}
---
--
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