new inference: ignore additional constraints when performed for overload resolution (IDEA-127928)

This commit is contained in:
Anna Kozlova
2014-08-06 13:57:20 +02:00
parent 5f361c8614
commit 65da126de7
3 changed files with 26 additions and 1 deletions

View File

@@ -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;
}
}