Files
Tagir Valeev c449c341b7 [java-highlighting] test-data adjusted (mostly anchors) after recent updates
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 1e1b77009dc78de49c7cc5c44d4704937397bb23
2025-01-29 11:35:30 +00:00

27 lines
457 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(I1)' and 'AmbiguityRawGenerics.foo(I2)' match">(()-> { throw new RuntimeException(); })</error>;
}
}