Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: base
Choose a base branch
from

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