mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-15 11:12:59 +07:00
18 lines
393 B
Java
18 lines
393 B
Java
interface I<A, B> {
|
|
B foo(A a);
|
|
}
|
|
class NoInferenceResult {
|
|
|
|
<A, B> I<A, B> m(I<A, B> f) { return null; }
|
|
<T> void m1(T t) { }
|
|
|
|
void test() {
|
|
m((String s1) -> <error descr="Cyclic inference">(String s2) -> s1 + s2</error>);
|
|
|
|
m((String s1) -> s1.length());
|
|
m((String s1) -> s1);
|
|
|
|
m1(<error descr="Cyclic inference">() -> { }</error>);
|
|
}
|
|
}
|