mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
18 lines
348 B
Java
18 lines
348 B
Java
package pck;
|
|
import static pck.D.foo;
|
|
import static pck.C.foo;
|
|
|
|
class C {
|
|
public static <T extends Comparable<S>, S> void foo(T x){}
|
|
}
|
|
|
|
class D {
|
|
public static <T extends Comparable<?>> void foo(T x){}
|
|
}
|
|
|
|
class B{
|
|
{
|
|
foo<error descr="Ambiguous method call: both 'D.foo(Integer)' and 'C.foo(Integer)' match">(1)</error>;
|
|
}
|
|
}
|