IDEA-186034 Lambda can be method call inspection should not generate code with inference failures

This commit is contained in:
Tagir Valeev
2018-02-02 12:07:23 +07:00
parent 8c83b630bb
commit b477b32395
2 changed files with 44 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
// "Replace lambda expression with 'Function.identity()'" "false"
import java.util.function.Function;
public class Main {
void m(Function<String, String> f) {
n(f, o <caret>-> o);
}
<T> void n(Function<T, T> f1, Function<T, Object> f2) {}
}