JavaCompilerCore/resources/bytecode/javFiles/SwitchInfered.jav
Ruben c7f4a2d4c1
Some checks failed
Build and Test with Maven / Build-and-test-with-Maven (push) Has been cancelled
feat: further fixes.
2024-07-25 08:27:43 +02:00

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;
};
}
}