mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-18 22:42:49 +07:00
62741ff30a
GitOrigin-RevId: 65421bfe8edf8962161919991fbb9eaa3671f6d9
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;
|
|
};
|
|
}
|
|
} |