mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 12:03:57 +07:00
GitOrigin-RevId: 05bdca159a63027ea0d1e3d767d4adb9b258f47e
11 lines
457 B
Java
11 lines
457 B
Java
public class Main {
|
|
void foo(Object obj) {
|
|
final boolean flag = false;
|
|
switch (obj) {
|
|
case String s when <error descr="Case label has a guard that is a constant expression with value 'false'">false</error> -> {}
|
|
case String s when s.length() < 0 -> {}
|
|
case String s when <error descr="Case label has a guard that is a constant expression with value 'false'">((flag || flag)) && 1 < 0</error> -> {}
|
|
default -> {}
|
|
}
|
|
}
|
|
} |