Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/expressions/MethodApplicability.java
Anna Kozlova 4dc5c9a5b0 [java] fix assertion condition
https://web.ea.pages.jetbrains.team/#/issue/396705
if method call provides explicit type arguments then no inference happens and there is no need in protection

GitOrigin-RevId: 062e4f6591bbdce03ed7ee8d666bea191bf1ba15
2022-07-06 12:28:57 +00:00

20 lines
365 B
Java

import java.util.function.Function;
class MyTest {
<T> java.util.List<T> f(Function<T, String> ff) {
return null;
}
{
this.<String>f<caret>(s -> {
switch (s) {
case null :
System.out.println();
break;
default: return "";
}
});
}
}