11 lines
176 B
Text
11 lines
176 B
Text
switch x do
|
|
case 1:
|
|
foo();
|
|
fallthrough; // Falls through and also executes "case 2"'s code
|
|
case 2:
|
|
bar();
|
|
break; // Break out of switch.
|
|
default:
|
|
baz();
|
|
break;
|
|
end
|