c7f4a2d4c1
Some checks failed
Build and Test with Maven / Build-and-test-with-Maven (push) Has been cancelled
20 lines
360 B
Java
20 lines
360 B
Java
import java.lang.Integer;
|
|
import java.lang.Object;
|
|
import java.lang.Float;
|
|
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) {
|
|
case Rec(a, b) -> a;
|
|
case Integer i -> i+1;
|
|
default -> 0;
|
|
};
|
|
}
|
|
} |