Skip to content

Commit

Permalink
Backport "simplify trees that appear in tastycheck test" to LTS (#22082)
Browse files Browse the repository at this point in the history
Backports #21274 to the 3.3.5.

PR submitted by the release tooling.
[skip ci]
  • Loading branch information
WojciechMazur authored Dec 3, 2024
2 parents 4387043 + bccc81a commit 33ad399
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 1,324 deletions.
10 changes: 6 additions & 4 deletions tests/pos/i21154/Z.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// in the original issue https://github.com/scala/scala3/issues/21154, the non-deterministic tasty
// depends on the order of compilation of files, the use-site (A.scala) has to come first,
// and the file defining the enum has to come second (Z.scala), A.scala in namer will force Z to complete.
enum Z:
case AOptions()
case BOptions()
case COptions()
sealed trait Z

object Z:
class AOptions() extends Z
class BOptions() extends Z
class COptions() extends Z
Loading

0 comments on commit 33ad399

Please sign in to comment.