Daniel Holle
f846142ee1
Some checks failed
Build and Test with Maven / Build-and-test-with-Maven (push) Failing after 40s
14 lines
268 B
Java
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;
|
|
};
|
|
}
|
|
} |