JavaCompilerCore/resources/bytecode/javFiles/PatternMatchingLiteralStyle.jav
Ruben fc22299af5
Some checks failed
Build and Test with Maven / Build-and-test-with-Maven (push) Failing after 45s
feat: add Literal in Records and LPattern for Syntaxtreegenerator
2024-10-09 17:01:28 +02:00

17 lines
279 B
Java

import java.lang.Integer;
import java.lang.Double;
import java.lang.Number;
import java.lang.String;
public record R(Number n) {}
public class SwitchOverload {
public f(){}
public m(r) {
return switch(r) {
case R("test") -> f();
};
}
}