dev/vala/switch_break/switch_break.vala

20 lines
250 B
Vala

void main () {
var i = 5;
switch (i) {
case 5:
if (i == 5) {
stdout.printf ("first case\n");
break;
}
stdout.printf ("after break\n");
break;
case 6:
stdout.printf ("second case\n");
break;
default:
break;
}
}