-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Clarify that a copy constructor doesn't prevent an automatic addition of a default instance constructor for a record. #3913
Conversation
Merge from dotnet/csharplang
Merge from dotnet/csharplang
Merge from dotnet/csharplang
… of a default instance constructor for a record.
fields implicitly or explicitly declared within the record type. | ||
fields implicitly or explicitly declared within the record type. | ||
The sole presence of a copy constructor, whether explicit or implicit, doesn't prevent an automatic | ||
addition of a default instance constructor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is a "default instance constructor" similar to what is synthesized for an empty class declaration class C { }
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is a "default instance constructor" similar to what is synthesized for an empty class declaration class C { }?
It isn't similar, it is what is synthesized for an empty class declaration.
…lt instance constructor for a record. dotnet/csharplang#3913
…lt instance constructor for a record. (#47850) dotnet/csharplang#3913
No description provided.