[Issue 5713] Broken final switch on ints
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 26 04:13:38 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5713
--- Comment #13 from bearophile_hugs at eml.cc 2012-12-26 04:13:35 PST ---
See also this thread:
http://forum.dlang.org/thread/hoczugrnzfbtvpnwjevd@forum.dlang.org
I think this code should be supported, because here the compiler is able to
statically enforce that every possible ushort value is covered by exactly one
of the final switch cases:
void main () {
ushort x;
final switch (x) {
case 0: .. case 1000:
break;
case 1001: .. case ushort.max:
break;
}
}
See also issue 5714
--
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