mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
method ref highlighting: show error on container when functional interface is not fully inferred (IDEA-214550)
GitOrigin-RevId: 8bce63a76385161033d494d1fd2b5439daccaf6d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f7b26dca7a
commit
1cfa8a070d
@@ -10,7 +10,7 @@ class MyTest {
|
||||
public <T> void from(Collection<T> elements) { }
|
||||
|
||||
public void foo(final Stream<String> artifactStream) {
|
||||
from(artifactStream.collect(Collectors.toCollection(<error descr="Bad return type in method reference: cannot convert java.util.TreeSet<java.lang.String> to C">TreeSet<String>::new</error>)));
|
||||
from<error descr="Ambiguous method call: both 'MyTest.from(Page<String>)' and 'MyTest.from(Collection<String>)' match">(artifactStream.collect(Collectors.toCollection(TreeSet<String>::new)))</error>;
|
||||
}
|
||||
|
||||
interface Page<T> extends Iterable<T> {}
|
||||
|
||||
Reference in New Issue
Block a user