mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
16 lines
302 B
Java
16 lines
302 B
Java
class ThreadExample {
|
|
interface Function<T, R> {
|
|
|
|
R apply(T t);
|
|
}
|
|
{
|
|
A a = new A();
|
|
Function<? super A,? extends String> foo = a::<error descr="Cannot resolve method 'foo'">foo</error>;
|
|
}
|
|
|
|
static class A {
|
|
public String foo() { return "a"; }
|
|
}
|
|
}
|
|
|