2017-05-24 13:20:05 -07:00
|
|
|
switch (true) {
|
|
|
|
|
case true:
|
|
|
|
|
// Good luck getting here
|
|
|
|
|
|
|
|
|
|
case false:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch (true) {
|
|
|
|
|
case true:
|
|
|
|
|
|
|
|
|
|
// Good luck getting here
|
|
|
|
|
case false:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch(x) {
|
|
|
|
|
case x: {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// other
|
|
|
|
|
|
|
|
|
|
case y: {
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-28 00:11:28 -03:00
|
|
|
|
|
|
|
|
switch(x) {
|
|
|
|
|
default: // comment
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch(x) {
|
|
|
|
|
default: // comment
|
|
|
|
|
{break;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch(x) {
|
|
|
|
|
default: {// comment
|
|
|
|
|
break;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch(x) {
|
|
|
|
|
default: /* comment */
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch(x) {
|
|
|
|
|
default: /* comment */
|
|
|
|
|
{break;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch(x) {
|
|
|
|
|
default: {/* comment */
|
|
|
|
|
break;}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch(x) {
|
|
|
|
|
default: /* comment */ {
|
|
|
|
|
break;}
|
|
|
|
|
}
|