mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
14 lines
237 B
Java
14 lines
237 B
Java
// "Collapse into loop" "true-preview"
|
|
class X {
|
|
void test() {
|
|
for (int i : new int[]{1, 2, 3, 4}) {
|
|
consume(() -> i);
|
|
}
|
|
}
|
|
|
|
void consume(IntSupplier x) {}
|
|
|
|
interface IntSupplier {
|
|
int supply();
|
|
}
|
|
} |