mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
new inference: skip lambda return expression additional constraints during overload resolution
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.function.Function;
|
||||
|
||||
class MyTest {
|
||||
interface I<T, E> {
|
||||
List<E> m(Set<T> s);
|
||||
}
|
||||
|
||||
<K, L>List<K> foo(I<K, L> i){return null;}
|
||||
|
||||
<K, H> List<K> bar(Runnable l) {return null;}
|
||||
List<String> bar(Function<String, String> s) {return null;}
|
||||
|
||||
String baz(Set<Integer> b, String x) {return null;}
|
||||
List<Integer> baz(Iterator<Integer> s, Iterator<Integer> i) {return null;}
|
||||
|
||||
{
|
||||
List<Integer> l = foo(a -> bar(b -> b<ref>az(a, b)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user