[Issue 6518] break inside a static foreach inside a switch
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 21 07:01:01 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6518
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2011-08-21 07:00:55 PDT ---
More simple test case.
enum Foo : uint { A }
void main() {
Foo foo;
switch (foo) {
enum op = "A";
case Foo.A: break;
default: assert(0);
}
// Following gives same error
//final switch (foo) {
// enum op = "A";
// case Foo.A: break;
//}
}
The case statement treats the previous enum declaration as fall-through
statement and warns.
--
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