mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
14 lines
269 B
Java
14 lines
269 B
Java
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);
|
|
}
|
|
} |