mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +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
205 B
Java
10 lines
205 B
Java
// "Replace method call on lambda with lambda body" "false"
|
|
|
|
import java.util.function.IntUnaryOperator;
|
|
|
|
public class Main {
|
|
void test() {
|
|
((IntUnaryOperator)x -> x+=5).app<caret>lyAsInt(10);
|
|
}
|
|
}
|