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

Use primary constructor instead of apply when create case class #637

Closed
wants to merge 1 commit into from

Conversation

nox213
Copy link
Contributor

@nox213 nox213 commented Oct 14, 2024

fixes #624

When creating a Reader for a case class with a custom apply method, the process can fail if the apply method returns a different type than the case class itself. To address this, I’ve modified the macro to use the primary constructor instead.

@nox213
Copy link
Contributor Author

nox213 commented Oct 14, 2024

#607
I wasn't aware of this

@nox213 nox213 closed this Oct 14, 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.

Doesn't work well with custom apply on case class
1 participant