JavaCompilerCore/SwitchAppend.java

7 lines
185 B
Java
Raw Normal View History

2024-08-22 13:13:25 +00:00
sealed interface List<T> permits LinkedElem, Elem {}
record LinkedElem<T>(T a, List<T> l) implements List<T> {}
record Elem<T>(T a) implements List<T> {}
public class SwitchAppend {}