Main.java:8: error: incompatible types: invalid method reference
return predicates.map(Function.identity()).reduce(Predicate::or);
^
incompatible types: Predicate<CAP#1> cannot be converted to Predicate<? super CAP#2>
where T is a type-variable:
T extends Object declared in method <T>with(Stream<Predicate<? super T>>)
where CAP#1,CAP#2 are fresh type-variables:
CAP#1 extends Object super: T from capture of ? super T
CAP#2 extends Object super: T from capture of ? super T
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error