mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 14:50:53 +07:00
12 lines
204 B
Java
12 lines
204 B
Java
// "Unwrap 'switch'" "true-preview"
|
|
class X {
|
|
int[] someArray;
|
|
|
|
native boolean someCondition(int i);
|
|
|
|
void test(int i) {
|
|
int x = <caret>switch (someArray[--i]) {
|
|
default -> 1;
|
|
};
|
|
}
|
|
} |