mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 15:20:54 +07:00
IDEA-355026 "Trivial usage of functional expression" breaks semantics if one argument updates the variable used in another GitOrigin-RevId: e3d9374ecc427d62cee0d821473e9119ae240fc5
15 lines
353 B
Java
15 lines
353 B
Java
// "Replace method call on lambda with lambda body" "true-preview"
|
|
import java.util.function.IntBinaryOperator;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
int l = 1;
|
|
int q = 2;
|
|
System.out.println(l + " " + q);
|
|
int i = q;
|
|
q++;
|
|
l = i;
|
|
System.out.println(l + " " + q);
|
|
}
|
|
}
|