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

Generate toString only for synthetic companions of case classes #16890

Merged
merged 2 commits into from
Feb 19, 2023

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 11, 2023

Don't generate a toString method if the companion is explicitly given. This matches Scala 2's behavior.

Fixes #16879

Don't generate a toString method if the companion is explicitly given.
This matches Scala 2's behavior.

Fixes scala#16879
@odersky odersky merged commit 769ca3b into scala:main Feb 19, 2023
@odersky odersky deleted the fix-16879 branch February 19, 2023 22:11
@Kordyjan Kordyjan added this to the 3.3.1 milestone Aug 1, 2023
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.

Cannot inherit final override toString in companion object of case class
3 participants