JavaCompilerCore/resources/bytecode/javFiles/SwitchNestedValue.jav
Daniel Holle f846142ee1
Some checks failed
Build and Test with Maven / Build-and-test-with-Maven (push) Failing after 40s
Add broken value matching
2024-11-20 14:44:10 +01:00

14 lines
268 B
Java

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;
};
}
}