Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newLambda/OverloadResolutionSAM.java
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

20 lines
388 B
Java

class Test {
interface IInt {
int m();
}
interface ILong {
long m();
}
void m(IInt i, Long l) {}
void m(ILong l, Integer i) {}
void m1(IInt i, Integer l) {}
void m1(ILong l, Object i) {}
void test() {
m<error descr="Ambiguous method call: both 'Test.m(IInt, Long)' and 'Test.m(ILong, Integer)' match">(() -> 1, null)</error>;
m1(() -> 1, null);
}
}