blob: da2d1123f76164bcc0467be9ae028ce28ed6d993 [file] [log] [blame]
class C {
static class E1 extends Exception { }
static class E2 extends Exception { }
static class R implements AutoCloseable {
public static R open() throws E1 { return new R(); }
public void close() throws E2 { }
}
void m() throws E1, E2 {
try (R r = R.open()) {
}
}
}