new inference: postpone resolution of independent vars (IDEA-125674)

This commit is contained in:
Anna Kozlova
2014-08-08 17:16:56 +04:00
parent a69062dc3b
commit ead13681e1
3 changed files with 12 additions and 18 deletions

View File

@@ -0,0 +1,8 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;
class Test {
void foo(final Stream<String> stream){
stream.collect(Collectors.toMap(s -> s, s -> s, (a, b) -> a.length() > b. length() ? a : b));
}
}