mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
14 lines
217 B
Java
14 lines
217 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;
|
|
}
|
|
}
|