// "Unwrap 'switch'" "true-preview"
class X {
  String test(char c) {
    s<caret>witch (c) {
      default:
        if(c == 'a') {
          System.out.println("foo");
          break;
        } else break;
    }
    System.out.println("oops");
  }
}