8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da5ed4f commit 0710c7bCopy full SHA for 0710c7b
test/files/pos/t12474/Nat.java
@@ -0,0 +1,6 @@
1
+// javaVersion: 17+
2
+
3
+public sealed interface Nat permits Nat.Zero, Nat.Succ {
4
+ public static final record Zero() implements Nat {}
5
+ public static final record Succ(Nat pred) implements Nat {}
6
+}
test/files/pos/t12474/s.scala
@@ -0,0 +1,5 @@
+class S {
+ def j: Nat = new Nat.Zero
0 commit comments