mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 07:50:55 +07:00
20 lines
256 B
Java
20 lines
256 B
Java
class Foo {
|
|
interface I<T> {
|
|
T m(Object op);
|
|
}
|
|
|
|
interface J<T> {
|
|
int m(T o);
|
|
}
|
|
|
|
|
|
void f(J r) {}
|
|
void f(I<String> r) {}
|
|
|
|
{
|
|
f((Object a) -> {
|
|
int c = 1;
|
|
return c;
|
|
});
|
|
}
|
|
} |