new inference: substitute resolved vars which e.g. did not participate in initial session (IDEA-123248)

This commit is contained in:
Anna Kozlova
2014-04-01 13:52:44 +02:00
parent 5518b93bd2
commit d33575878b
4 changed files with 18 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Stream;
class App {
void foo(Stream<Integer> boxed) {
final Map<Integer, Integer> count = boxed.collect(HashMap::new, null, HashMap::putAll);
}
}