mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
new inference: ignore additional constraints when performed for overload resolution (IDEA-127928)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.function.Function;
|
||||
|
||||
class CastLambdaParameter {
|
||||
|
||||
void main(final Map<Integer, String> map) {
|
||||
Set<Function<Object, String>> property2formatter = foo(bar((joint) -> map.get((Integer)joint)));
|
||||
}
|
||||
|
||||
public static <B> Set<B> foo(List<B> property2name) {return property2name != null ? null : null;}
|
||||
public static <B> Set<B> foo(List<B>... property2name) {return property2name != null ? null : null;}
|
||||
public static <B> Set<B> foo(Set<B> property2name) {return property2name != null ? null : null;}
|
||||
|
||||
public static <TB> List<TB> bar(TB b) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user