We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d652dc3 commit bccc81aCopy full SHA for bccc81a
tests/pos/i21154/Z.scala
@@ -3,7 +3,9 @@
3
// in the original issue https://github.com/scala/scala3/issues/21154, the non-deterministic tasty
4
// depends on the order of compilation of files, the use-site (A.scala) has to come first,
5
// and the file defining the enum has to come second (Z.scala), A.scala in namer will force Z to complete.
6
-enum Z:
7
- case AOptions()
8
- case BOptions()
9
- case COptions()
+sealed trait Z
+
+object Z:
+ class AOptions() extends Z
10
+ class BOptions() extends Z
11
+ class COptions() extends Z
0 commit comments