mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 20:33:31 +07:00
GitOrigin-RevId: c5c197eca630832e9f96d1cbee1a1ed545e0212f
17 lines
344 B
Java
17 lines
344 B
Java
import java.util.Collection;
|
|
import java.util.List;
|
|
|
|
interface A
|
|
{
|
|
<S extends Collection<?> & List<?>> void foo(S x);
|
|
<S extends List> String foo(S x);
|
|
}
|
|
|
|
|
|
class B
|
|
{
|
|
public static void main(String[] args) {
|
|
A a = null;
|
|
char c = a.foo(null).<error descr="Cannot call methods on 'void' type">charAt</error>(0);
|
|
}
|
|
} |