JavaCompilerCore/SwitchAppend.java
dholle fbc9f1e755
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 5m13s
Fix bugs and add new example
2024-08-22 15:13:25 +02:00

7 lines
185 B
Java

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