moreSpecific: check erased signatures when comparing interface methods (IDEA-67519)

This commit is contained in:
Anna Kozlova
2013-08-15 13:49:51 +04:00
parent 215cfff69c
commit 3f49bd2d73
4 changed files with 43 additions and 19 deletions
@@ -0,0 +1,18 @@
package pck;
class A<T extends C<String> & D>
{
void bar(T x)
{
x.foo<error descr="Ambiguous method call: both 'C.foo(String)' and 'D.foo(String)' match">("")</error>;
}
}
interface D
{
abstract void foo(String s);
}
interface C<T>
{
abstract void foo(T s);
}