mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
20 lines
274 B
Java
20 lines
274 B
Java
import java.io.IOException;
|
|
|
|
class Test {
|
|
|
|
interface B<K, E extends Throwable> {
|
|
K l(K k) throws E;
|
|
}
|
|
|
|
<R> void bar(B<R, IOException> b) {}
|
|
|
|
<E extends Throwable, T> T baz(T l) throws E {
|
|
return null;
|
|
}
|
|
|
|
{
|
|
bar(l -> baz(l));
|
|
bar(this::baz);
|
|
}
|
|
}
|