mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
12 lines
258 B
Java
12 lines
258 B
Java
public class ConflictsSwitchUsedDeconstruction {
|
|
public record Point(int a<caret>, String b) {
|
|
void foo(Object obj) {
|
|
switch (obj) {
|
|
case Point(int x, Object y) when x > 10 -> {
|
|
}
|
|
default -> {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |