mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
method ambiguity: compare ellipsis assignability with Object... only
This commit is contained in:
+9
-1
@@ -21,4 +21,12 @@ abstract class A {
|
||||
{
|
||||
foo<error descr="Ambiguous method call: both 'A.foo(Object...)' and 'A.foo(int...)' match">(1)</error>;
|
||||
}
|
||||
}
|
||||
}
|
||||
abstract class A1 {
|
||||
abstract void foo(double ... x);
|
||||
abstract void foo(int... x);
|
||||
|
||||
{
|
||||
foo(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user