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 toString for Scala 3 enums with no parameters #181

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

kubukoz
Copy link
Member

@kubukoz kubukoz commented Jan 19, 2024

I'll have to ponder on this for a sec. At the moment, it "kinda works" because the toString is added both to the enum root and its non-$anon members. A proper fix, I think, would add it to all its members, and use productPrefix for the $anon ones.

@kubukoz kubukoz changed the title Fix toString for Scala 3 enums Fix toString for Scala 3 enums with no parameters Jan 19, 2024
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