JavaCompilerCore/resources/bytecode/javFiles/SwitchInfered.jav
Ruben cc8f36d3ec
Some checks failed
Build and Test with Maven / Build-and-test-with-Maven (push) Failing after 7m5s
feat: further implementation
2024-08-02 18:02:35 +02:00

17 lines
293 B
Java

import java.lang.Integer;
import java.lang.Object;
import java.lang.Float;
import java.lang.String;
public record Rec(Object a, Object b) {}
public class SwitchInfered {
public main(o) {
return switch (o) {
case Rec(a, b) -> a;
default -> 0;
};
}
}