blob: 9272758cbab31dccc5e9e4f1ca3456e10bfb4ab5 [file] [log] [blame]
class Test {
interface I<E extends Throwable> {
void foo() throws E;
}
static class Ex extends Exception {}
<E extends Throwable> void bar(I<E> s) throws E {
s.foo();
}
void baz(I<Ex> s) throws Ex {
bar(s::foo);
}
}