mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
18 lines
240 B
Java
18 lines
240 B
Java
|
|
interface A<T> {
|
|
void method();
|
|
}
|
|
|
|
interface B<T extends A<?>> {
|
|
void method(T arg);
|
|
}
|
|
|
|
interface C {
|
|
void method(B<? extends A<String>> arg);
|
|
}
|
|
|
|
class Test {
|
|
public static void test(C c) {
|
|
c.method(arg -> arg.method( ));
|
|
}
|
|
} |