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