void () { doTest("import java.util.Objects;\n" + "import java.util.function.*;\n" + "\n" + "class Test {\n" + " Predicate<Integer> p = \"123\"::/*'equals' between objects of inconvertible types 'String' and 'Integer'*/equals/**/;\n" + " Predicate<CharSequence> pOk = \"456\"::equals;\n" + " BiPredicate<String, Integer> bp = Objects::/*'equals' between objects of inconvertible types 'String' and 'Integer'*/equals/**/;\n" + " BiPredicate<Long, Double> bp2 = Object::/*'equals' between objects of inconvertible types 'Long' and 'Double'*/equals/**/;\n" + " BiPredicate<Long, Long> bpOk = Object::equals;\n" + "}\n"); }