We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c597521 + 0c280c7 commit 4de574bCopy full SHA for 4de574b
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