// "Merge with 'case Integer _'" "true-preview"
class C {
  enum T {A, B,}

  void foo(Object o) {
    switch (o) {
      case Integer _ :
      case T.A:
        case String _ when o.hashCode()==1:
            System.out.println("1");
        break;
        default:
        System.out.println("3");
    }
  }
}