We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4387043 + bccc81a commit 33ad399Copy full SHA for 33ad399
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