mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 22:51:01 +07:00
13 lines
216 B
Java
13 lines
216 B
Java
import java.io.Serializable;
|
|
interface A<T extends Serializable>
|
|
{
|
|
<S extends T> S foo(S s);
|
|
}
|
|
class B implements A<Number>
|
|
{
|
|
@Override
|
|
public <S extends Number> S foo(S s)
|
|
{
|
|
return s;
|
|
}
|
|
} |