// "Add exception to existing catch clause" "true-preview"
import java.io.IOException;

class X extends RuntimeException {}
class Y extends RuntimeException {}

class Test {
  public static void main(String[] args) {
    try {
      try {
        throw new IOException();
      }
      catch (X | IOException x) {
      }
    }
    catch (Y y) {
    }
  }
}