JavaCompilerCore/resources/bytecode/javFiles/SwitchInfered.jav

17 lines
300 B
Plaintext
Raw Normal View History

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