Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/redundantCast/NonDenotableParent.java
Tagir Valeev a8dac43c9e [java-highlighting] Do not report incompatible type on calls when found type is lambda
Fixes IDEA-336129 Incorrect error if excess arguments passed to a function with lambda

GitOrigin-RevId: 712960416933e710740b9053b3604039c9a9b2ef
2025-03-21 14:59:41 +00:00

12 lines
414 B
Java

class MyTest {
void m(String[] refInfos){
refInfos = <error descr="Cannot resolve method 'unresolved' in 'MyTest'">unresolved</error>(refInfos, refInfo -> {
refInfo = refInfo.<error descr="Cannot resolve method 'replaceAll(String, String)'">replaceAll</error>("a", "b");
refInfo = n(refInfo);
return refInfo;
});
}
private static String n(String refInfo) {
return refInfo;
}
}