Files
Tagir Valeev bdc4c6c8c1 [java-intentions] IDEA-331850 Support 'Unroll Loop' intention when there are declarations in a loop
GitOrigin-RevId: 5fa9904997f3eade008dae8278ffc44dd0e9172d
2023-09-18 11:42:55 +00:00

9 lines
162 B
Java

// "Unroll loop" "true-preview"
class X {
void test() {
<caret>for (int x : new int[]{1, 2}) {
int y = x + 1;
System.out.println(y);
}
}
}