mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
overload resolution with varargs: don't prefer promitive varargs when no arg is provided (IDEA-140759)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
|
||||
class Test {
|
||||
public void test(String... <warning descr="Parameter 'a' is never used">a</warning>){}
|
||||
|
||||
public void test(int... <warning descr="Parameter 'a' is never used">a</warning>){}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Test().test<error descr="Ambiguous method call: both 'Test.test(String...)' and 'Test.test(int...)' match">()</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user