mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
test data for nested overloaded method calls in lambda body
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
class MyTest {
|
||||
interface I<T, E> {
|
||||
List<E> m(Set<T> s);
|
||||
}
|
||||
<K, L>List<K> foo(I<K, L> i){return null;}
|
||||
|
||||
<K> List<K> bar(List<K> l) {return l;}
|
||||
List<String> bar(String s) {return null;}
|
||||
|
||||
String baz(String b, String x) {return b;}
|
||||
List<Integer> baz(Iterator<Integer> s, Iterator<Integer> i) {return null;}
|
||||
|
||||
{
|
||||
List<Integer> l = foo(a -> bar(ba<ref>z(a.iterator(), a.iterator())));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user