int test() { int i = 1; switch i { case 1 { dostuff(1); } } switch i { case 1 { dostuff(1); } case 2 case 3 { dostuff(23); } default { dostuff(9); } } bool b = :true; switch b { case :false return 99; case :true return 100; } switch b { } // empty switch statement is allowed switch b { default { } } } () dostuff(int x) { }