mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 12:17:12 +07:00
method refs: wildcards treatment (IDEA-99828)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
public class Main {
|
||||
public static <T> void make(final Consumer<? super T> consumer) {
|
||||
Sink<T> accept = (Sink<T>) consumer::accept;
|
||||
Consumer<T> accept1 = (Consumer<T>)consumer::accept;
|
||||
}
|
||||
}
|
||||
|
||||
interface Sink<T> extends Consumer<T> {
|
||||
|
||||
}
|
||||
|
||||
interface Consumer<T> {
|
||||
public void accept(T t);
|
||||
}
|
||||
Reference in New Issue
Block a user