mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
11 lines
342 B
Java
11 lines
342 B
Java
class Test {
|
|
interface F<T extends Throwable> {
|
|
void _(T t) throws T;
|
|
}
|
|
<K extends Throwable> void foo(F<K> f) throws K { }
|
|
|
|
{
|
|
foo(<error descr="Cyclic inference">(t)->{}</error>);
|
|
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo((ClassNotFoundException t)->{});</error>
|
|
}
|
|
} |