20 lines
360 B
Plaintext
Raw Normal View History

import java.lang.Integer;
import java.lang.Object;
import java.lang.Float;
2024-07-25 08:27:43 +02:00
import java.lang.String;
public record Rec(String a, String b) {}
public class test extends String{
}
public class SwitchInfered {
public main(o) {
return switch (o) {
2024-07-25 08:27:43 +02:00
case Rec(a, b) -> a;
case Integer i -> i+1;
default -> 0;
};
}
}