mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
12 lines
217 B
Java
12 lines
217 B
Java
// "Replace with record pattern" "true-preview"
|
|
class X {
|
|
record Point(int x, int y) {
|
|
}
|
|
|
|
void test(Object obj) {
|
|
if (obj instanceof Point(int x, int y)) {
|
|
System.out.println(x + ((y)));
|
|
}
|
|
}
|
|
}
|