mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-01 12:50:56 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: ed0cf0daf5dbfb034882d49ad5e9c03f264b451e
13 lines
495 B
Java
13 lines
495 B
Java
import java.util.Map;
|
|
import java.util.stream.*;
|
|
|
|
class Either<E>{
|
|
public boolean isRight() {
|
|
return false;
|
|
}
|
|
}
|
|
class TestClass {
|
|
Map<Boolean, Either<String>> test(final Stream<Either<String>> eitherStream) {
|
|
return eitherStream.<error descr="Incompatible types. Found: 'java.util.Map<java.lang.Boolean,java.util.List<Either<java.lang.String>>>', required: 'java.util.Map<java.lang.Boolean,Either<java.lang.String>>'">collect</error>(Collectors.groupingBy(Either::isRight));
|
|
}
|
|
} |