mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
IDEA-186034 Lambda can be method call inspection should not generate code with inference failures
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user