mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
ambiguous method calls: multiple inheritance (IDEA-89314)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
class A<T>{}
|
||||
|
||||
interface I<Q extends I<Q>> {
|
||||
Q from(A<?>... paths);
|
||||
}
|
||||
|
||||
interface II extends I<II> {}
|
||||
class C<Q extends C<Q>> {
|
||||
public Q from(A<?>... args) {return null;}
|
||||
}
|
||||
class AC<Q extends AC<Q>> extends C<Q> {}
|
||||
class CC extends AC<CC> implements II {
|
||||
void bar() {
|
||||
from(null);
|
||||
}
|
||||
|
||||
static void barStatic() {
|
||||
<error descr="Non-static method 'from(A<?>...)' cannot be referenced from a static context">from</error>(null);
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
|
||||
void foo(CC a){
|
||||
a.from(null);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user