mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
15 lines
252 B
Java
15 lines
252 B
Java
// "Collapse into loop" "true-preview"
|
|
class X {
|
|
void test() {
|
|
<caret>consume(() -> 1);
|
|
consume(() -> 2);
|
|
consume(() -> 3);
|
|
consume(() -> 4);
|
|
}
|
|
|
|
void consume(IntSupplier x) {}
|
|
|
|
interface IntSupplier {
|
|
int supply();
|
|
}
|
|
} |