mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-31 02:20:39 +07:00
4bbd7cf012
IDEA-274106 GitOrigin-RevId: 3f41806bc5eceea7efa2c10bc149f231b4d42262
10 lines
257 B
Java
10 lines
257 B
Java
// "Create local variable 'flag'" "true-preview"
|
|
class Foo {
|
|
void test(Object obj) {
|
|
boolean flag;
|
|
switch (obj) {
|
|
case String s && flag -> System.out.println(1);
|
|
default -> System.out.println(2);
|
|
}
|
|
}
|
|
} |