incompatible types: highlight parent call instead of lambda when the error isn't related to lambda (IDEA-218801)

GitOrigin-RevId: 17a2f1f62f7703930aa25a8cfd6dfd4a918e1fe7
This commit is contained in:
Anna.Kozlova
2019-10-10 08:50:12 +02:00
committed by intellij-monorepo-bot
parent 0edaac849d
commit 87deef960c
11 changed files with 15 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ import java.util.stream.Stream;
class MyTest {
{
Stream<String> stream = Stream.of("a", "b", "c", "d");
Set<Integer> set = stream.collect(<error descr="No compile-time declaration for the method reference is found">()->new TreeSet<Integer>()</error>, TreeSet::<error descr="Incompatible types: String is not convertible to Integer">add</error>, TreeSet::addAll);
Set<Integer> set = stream.collect(()->new TreeSet<Integer>(), TreeSet::<error descr="Incompatible types: String is not convertible to Integer">add</error>, TreeSet::addAll);
}
}