mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
12 lines
238 B
Java
12 lines
238 B
Java
public class WithoutConflictsSwitchUsedDeconstruction {
|
|
public record Point(int a) {
|
|
void foo(Object obj) {
|
|
switch (obj) {
|
|
case Point(int x) when x > 10 -> {
|
|
}
|
|
default -> {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |