mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
method reference: distinguish captured wildcards by target parameters (IDEA-170340)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
class MyTest {
|
||||
{
|
||||
BiConsumer<Predicate<? extends Runnable>, Predicate<? extends Runnable>> or = MyTest::<error descr="Invalid method reference: Predicate<capture of ? extends Runnable> cannot be converted to Predicate<E>">or</error>;
|
||||
}
|
||||
|
||||
private static <E extends Runnable> void or(Predicate<E> left, Predicate<E> right) {}
|
||||
}
|
||||
Reference in New Issue
Block a user