aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/before/Sealed.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/pretty/resource/before/Sealed.java')
-rw-r--r--test/pretty/resource/before/Sealed.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pretty/resource/before/Sealed.java b/test/pretty/resource/before/Sealed.java
new file mode 100644
index 00000000..46828627
--- /dev/null
+++ b/test/pretty/resource/before/Sealed.java
@@ -0,0 +1,17 @@
+// version 15:
+public class Sealed {
+ public abstract sealed class Parent permits Child1, Child2 {
+ }
+
+ public final class Child1 extends Parent {
+ }
+
+ public abstract non-sealed class Child2 extends Parent {
+ }
+
+ public sealed interface SealedInterface permits ChildInterface1 {
+ }
+
+ public non-sealed interface ChildInterface1 extends SealedInterface {
+ }
+} \ No newline at end of file