mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
moreSpecific: check erased signatures when comparing interface methods (IDEA-67519)
This commit is contained in:
+18
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user