JavaTXCompilerInJavaTX/resources/bytecode/javFiles/Switch2.jav

13 lines
178 B
Plaintext
Raw Normal View History

2023-10-17 10:26:40 +00:00
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;
};
}
}