mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
17 lines
544 B
Java
17 lines
544 B
Java
public class ConstantAssignment {
|
|
void dd(Double i) {
|
|
switch (i) {
|
|
case <error descr="Pattern expected for switch selector type 'java.lang.Double'">1.0</error> -> System.out.println(1);
|
|
default -> throw new IllegalStateException("Unexpected value: " + i);
|
|
}
|
|
}
|
|
|
|
void dd2(Long i) {
|
|
switch (i) {
|
|
case <error descr="Pattern expected for switch selector type 'java.lang.Long'">1L</error>:
|
|
System.out.println(1);
|
|
default:
|
|
throw new IllegalStateException("Unexpected value: " + i);
|
|
}
|
|
}
|
|
} |