Skip to content

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Jan 23, 2019

Now the copy method of a case class can be overridden with default parameters.

@Blaisorblade
Copy link
Contributor

Jason wrote:

The copy method subverts attempts to use private constructors for case
classes so being able to disable its generation is a useful idiom.

Can we test that too?

Copy link
Contributor

@Blaisorblade Blaisorblade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ensure any conflicting override of copy disables the default one? (As much as Scalac?) Ones without defaults, with private, etc seem good testcases.

@smarter smarter removed their assignment Jan 24, 2019
@nicolasstucki nicolasstucki merged commit a5cca66 into scala:master Jan 24, 2019
@Blaisorblade Blaisorblade deleted the fix-#209 branch January 24, 2019 23:30
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.

3 participants