overload resolution: don't choose most specific method based on boxing property for vararg position (IDEA-163597)

This commit is contained in:
Anna.Kozlova
2016-11-17 17:08:48 +01:00
parent 908a86fd72
commit ccb61093af
3 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
class Main {
private static void m(Integer... arr) {}
private static void m(int... arr) {}
{
m<error descr="Ambiguous method call: both 'Main.m(Integer...)' and 'Main.m(int...)' match">(1, 2)</error>;
}
}