2024-06-06 10:16:28 +00:00
|
|
|
import java.lang.Integer;
|
|
|
|
import java.lang.Object;
|
|
|
|
import java.lang.Float;
|
2024-07-25 06:27:43 +00:00
|
|
|
import java.lang.String;
|
|
|
|
|
2024-08-20 17:52:55 +00:00
|
|
|
public record Rec(Object a, Object b) {}
|
2024-07-25 06:27:43 +00:00
|
|
|
|
2024-06-06 10:16:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
public class SwitchInfered {
|
|
|
|
public main(o) {
|
|
|
|
return switch (o) {
|
2024-08-06 16:44:52 +00:00
|
|
|
case Rec(a, b) -> "asd";
|
|
|
|
default -> "cde";
|
2024-06-06 10:16:28 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|