inference: treeWalkUp if overload is done under current argumentList caused by lambda parameter type inference (IDEA-157676)

This commit is contained in:
Anna Kozlova
2016-06-22 15:24:15 +03:00
parent 1c52cb7fd6
commit a330f9c2f7
3 changed files with 25 additions and 1 deletions
@@ -0,0 +1,12 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;
class Test {
public void foo(Stream<String> stream) {
stream.collect(Collectors.toMap(null, e -> bar(e)));
}
public String bar(int entity) { return null; }
public String bar(String entity) { return null; }
}