mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
12 lines
242 B
Java
12 lines
242 B
Java
// "Create record 'Point'" "true-preview"
|
|
class Test {
|
|
void foo(Object obj) {
|
|
switch (obj) {
|
|
case Point(double x, double y) -> {}
|
|
default -> {}
|
|
}
|
|
}
|
|
}
|
|
|
|
public record Point(double x, double y) {
|
|
} |