mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 16:02:32 +07:00
GitOrigin-RevId: 55ef9a7d7fa7b96a8f54e91801060b7c3d44dd65
18 lines
452 B
Java
18 lines
452 B
Java
public class ConflictsSwitchNestedDeconstruction {
|
|
public static void main(String[] args) {
|
|
final Point point = new Point(199, null);
|
|
point.foo(point);
|
|
}
|
|
public record Point(int x<caret>, Point y) {
|
|
void foo(Object obj) {
|
|
switch (obj) {
|
|
case Point(int x, Point(int x2, Point y2)) -> {
|
|
System.out.println(y2);
|
|
}
|
|
default -> {
|
|
System.out.println("default");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |