mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
bombed test for resolution with cycle
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
|
||||
abstract class Test {
|
||||
|
||||
{
|
||||
Consumer<? extends Double> bar = bar(instanceOf(Integer.class), i -> i + 2);
|
||||
Consumer<? extends String> bar1 = bar(instanceOf(Integer.class), i -> i + 2);
|
||||
}
|
||||
|
||||
|
||||
abstract <T, R> Consumer<T> bar(Predicate<? super T> predicate, Function<T, R> f);
|
||||
abstract <P> Predicate<P> instanceOf(Class<? extends P> type);
|
||||
}
|
||||
Reference in New Issue
Block a user