Files
2019-01-02 16:35:41 +01:00

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>;
}
}