blob: 094642a0bb808b48a76c0c8993ead53a23f5a557 [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() {
try (R r = R.open()) {
}
<caret>catch (E1 ignore) { }
catch (E2 ignore) { }
}
}