mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
27 lines
456 B
Java
27 lines
456 B
Java
interface I {
|
|
void m();
|
|
}
|
|
|
|
interface I1 {
|
|
int m();
|
|
}
|
|
|
|
interface I2 {
|
|
String m();
|
|
}
|
|
|
|
interface I3<A> {
|
|
A m();
|
|
}
|
|
|
|
class AmbiguityRawGenerics {
|
|
|
|
void foo(I s) { }
|
|
void foo(I1 s) { }
|
|
void foo(I2 s) { }
|
|
<Z> void foo(I3<Z> s) { }
|
|
|
|
void bar() {
|
|
foo<error descr="Ambiguous method call: both 'AmbiguityRawGenerics.foo(I)' and 'AmbiguityRawGenerics.foo(I1)' match">(()-> { throw new RuntimeException(); })</error>;
|
|
}
|
|
} |