Switch cases in which breaks are not needed!


#1

This probably could of surfaced on some other discussion, but at the time of writing I have no time to check more from the forum than I did and I'm going to forget if I leave it at that, so here it is:
During any of the Switch interactions during the course(at least up to 'Code your own Adventure part 2') you are not allowed to use this:

switch (expr) {
case 1:
case 2:
case 3:
...
case 7:
// code
break;
default:
// code
break;
}

Which is actually syntactically correct and working. From case 1 to 7 the program executes the code from case 7. But you get a message that it isn't, and you can't progress further if you don't give every case a break. And yet you get the executed code from case 7 on the output box.