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