mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
18 lines
436 B
Java
18 lines
436 B
Java
import java.util.*;
|
|
interface In<X> {
|
|
List<X> f();
|
|
}
|
|
|
|
class InferenceOnMethodCallSite {
|
|
<Z> void m(In<Z> i, In<Z> ii) { }
|
|
<Z> void m(In<Z> s) { }
|
|
|
|
{
|
|
m(() -> Collections.emptyList());
|
|
m((In<String>)() -> Collections.emptyList(), () -> new ArrayList<String>());
|
|
m(() ->Collections.<String>emptyList(), () -> new ArrayList<String>());
|
|
m(() -> Collections.<String>emptyList());
|
|
}
|
|
|
|
}
|