overload conflicts: assume that subsignature conflicts are already resolved when most specific are checked (IDEA-168894)

This commit is contained in:
Anna.Kozlova
2017-03-06 10:28:45 +01:00
parent f34a8eaf3c
commit effcbfe27b
3 changed files with 32 additions and 3 deletions
@@ -0,0 +1,11 @@
package p;
import static p.A.of;
import static p.B.of;
class Test {
{
of(1, 2, 3);
of<error descr="Ambiguous method call: both 'A.of(Integer)' and 'B.of(Integer)' match">(4)</error>;
}
}