JavaCompilerCore/resources/bytecode/javFiles/SwitchNestedValue.jav

14 lines
268 B
Plaintext
Raw Normal View History

2024-11-20 13:44:10 +00:00
import java.lang.Object;
import java.lang.Integer;
public record R(Integer i) {}
public class SwitchNestedValue {
public main(r) {
return switch(r) {
case R(10) -> 1;
case R(20) -> 2;
case R(i) -> 3;
};
}
}