mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-29 16:50:55 +07:00
18 lines
288 B
Java
18 lines
288 B
Java
interface A
|
|
{
|
|
abstract void foo(String[] ... s);
|
|
}
|
|
|
|
interface B
|
|
{
|
|
abstract void foo(String[] s);
|
|
}
|
|
|
|
class C<T extends A & B>
|
|
{
|
|
void bar(T x)
|
|
{
|
|
x.foo<error descr="Ambiguous method call: both 'A.foo(String[]...)' and 'B.foo(String[])' match">(null)</error>;
|
|
}
|
|
}
|