JavaTXCompilerInJavaTXNoMaven/resources-back/bytecode/javFiles/Switch2.jav
2024-05-02 23:04:07 +02:00

13 lines
178 B
Java

import java.lang.Integer;
record Point(x, y) {}
class Switch2 {
m() {
var pt = new Point(10, 20);
return switch (pt) {
case Point(x, y) -> 10;
default -> 20;
};
}
}