Skip to content

Commit 33ad399

Browse files
Backport "simplify trees that appear in tastycheck test" to LTS (#22082)
Backports #21274 to the 3.3.5. PR submitted by the release tooling. [skip ci]
2 parents 4387043 + bccc81a commit 33ad399

File tree

2 files changed

+241
-1324
lines changed

2 files changed

+241
-1324
lines changed

tests/pos/i21154/Z.scala

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
// in the original issue https://github.com/scala/scala3/issues/21154, the non-deterministic tasty
44
// depends on the order of compilation of files, the use-site (A.scala) has to come first,
55
// 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()
6+
sealed trait Z
7+
8+
object Z:
9+
class AOptions() extends Z
10+
class BOptions() extends Z
11+
class COptions() extends Z

0 commit comments

Comments
 (0)