class Test {
  static int test1(int i, int p){
  return 5 + switch (p){
    case 1 -> throw new RuntimeException("1");
    case 2 -> throw new RuntimeException("2");
    case 3 -> throw new RuntimeException("3");
    default -> {if(true) throw new RuntimeException(); else yield 0;}
  };
} 
} 