mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
new inference: proceed with additional constraints when no nested calls available (IDEA-124424)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
|
||||
class Main {
|
||||
void bar(final Stream<Object> objectStream) {
|
||||
foo(objectStream.map(o -> "str").collect(toList()));
|
||||
}
|
||||
|
||||
void foo(Iterable<?> k){}
|
||||
void foo(String s){}
|
||||
}
|
||||
Reference in New Issue
Block a user