mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
11 lines
302 B
Java
11 lines
302 B
Java
class Test {
|
|
interface F<T extends Throwable> {
|
|
void m(T t) throws T;
|
|
}
|
|
<K extends Throwable> void foo(F<K> f) throws K { }
|
|
|
|
{
|
|
foo((t)->{});
|
|
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo</error>((ClassNotFoundException t)->{});
|
|
}
|
|
} |