... case 1: string x = \"SomeString\"; ... break; case 2: x = \"SomeOtherString\"; ... break; ...
Is there something that
It looks like the scoping of variables is within the switch, not the case, probably because cases can be stacked. Notice if you try to reference x outside of the switch it will fail.