mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
18 lines
290 B
Java
18 lines
290 B
Java
package pck;
|
|
class A<T extends C<String> & D>
|
|
{
|
|
void bar(T x)
|
|
{
|
|
x.foo<error descr="Ambiguous method call: both 'C.foo(String)' and 'D.foo(String)' match">("")</error>;
|
|
}
|
|
}
|
|
|
|
interface D
|
|
{
|
|
abstract void foo(String s);
|
|
}
|
|
|
|
interface C<T>
|
|
{
|
|
abstract void foo(T s);
|
|
} |