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

28 lines
526 B
Java

interface I {
void m();
}
interface I1<A> {
void m(A a);
}
interface I2<A> {
void m(A a1, A a2);
}
interface IV<A> {
void m(A... as);
}
class AmbiguityVarargs {
void foo(I s) { }
void foo(I1<String> s) { }
void foo(I2<String> s) { }
void foo(IV<String> s) { }
void test() {
foo(()->{});
foo<error descr="Ambiguous method call: both 'AmbiguityVarargs.foo(I1<String>)' and 'AmbiguityVarargs.foo(IV<String>)' match">((a1) -> {})</error>;
foo((a1, a2)->{});
}
}