Files
JavaCompilerCore/resources/bytecode/javFiles/PatternMatchingJava2.jav
Daniel Holle 9117a608c8
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 1m16s
Fix up some stuff
2026-01-15 18:16:49 +01:00

5 lines
198 B
Java

sealed interface List<T> permits Cons, Empty {}
public record Cons<T>(T a, List<T> l) implements List<T> {}
public record Empty<T>() implements List<T> {}
public record Tuple<T1, T2>(T1 a, T2 b) {}