Skip to content

Fix compilation of traverseTuple under new match types restrictions (Scala 3.4+)#138

Open
WojciechMazur wants to merge 1 commit intotofu-tf:basefrom
WojciechMazur:fix/compilation-scala-3.4+
Open

Fix compilation of traverseTuple under new match types restrictions (Scala 3.4+)#138
WojciechMazur wants to merge 1 commit intotofu-tf:basefrom
WojciechMazur:fix/compilation-scala-3.4+

Conversation

@WojciechMazur
Copy link

We've found out in the Open Community Build that this project fails to build under Scala 3.4+. It's due to SIP-56 changes to the Scala match types scala/scala3#18262, especially a change introduced in scala/scala3@5260c60 made the type reduction of head variable to be no longer A *: rest but (T & (A *: rest)) instead. This lead to further type mismatch errors when compiling.
I'm proposing a change that should both fix the issue and simplify the code. Running tests locally finished successfully using both Scala 3.1.3 (used in the project) and 3.5.0 (latest stable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant