Skip to content

Fix #3140: Generate better equals for case/value classes #4169

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

Merged
merged 2 commits into from
Mar 24, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Mar 23, 2018

  • Do overloading resolution on == to avoid boxing primitives
  • Use case _ instead of case _: Any for the default case, the latter
    produces suboptimal code.

smarter added 2 commits March 23, 2018 22:19
- Do overloading resolution on `==` to avoid boxing primitives
- Use `case _` instead of `case _: Any` for the default case, the latter
  produces suboptimal code.
@smarter smarter requested a review from nicolasstucki March 23, 2018 21:19
@smarter smarter merged commit 0c538cc into scala:master Mar 24, 2018
@allanrenucci allanrenucci deleted the fix/synthetic-equals branch March 24, 2018 12:10
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.

2 participants