mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
Fixes IDEA-176019 Trivial functional expression: do not inline if parameter produces side effect and evaluated not once Fixes EA-103938 (invalid PSI was used if inlining replaced the whole method) Fixes inlining of functional expression
10 lines
220 B
Java
10 lines
220 B
Java
// "Replace method call on lambda with lambda body" "true"
|
|
|
|
import java.util.function.IntBinaryOperator;
|
|
|
|
public class Main {
|
|
void test() {
|
|
int res = ((IntBinaryOperator)(x, y) -> x).appl<caret>yAsInt(5, 6);
|
|
}
|
|
}
|