JavaCompilerCore/resources/bytecode/javFiles/SwitchInfered.jav
Ruben 94c359f7a1
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 6m7s
test & feat: recursive Method-Call for nested Constraint-Generation Patterns in Records and added Linked-List Testcase.
2024-08-20 19:52:55 +02:00

17 lines
300 B
Java

import java.lang.Integer;
import java.lang.Object;
import java.lang.Float;
import java.lang.String;
public record Rec(Object a, Object b) {}
public class SwitchInfered {
public main(o) {
return switch (o) {
case Rec(a, b) -> "asd";
default -> "cde";
};
}
}