-
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
Specify when record struct synthesized members are 'readonly' #4890
Conversation
Resolved: LDM revisited this decision by mail. |
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.
Can't PrintMembers
and Deconstruct
be always readonly? I don't get why there is a restriction. Those methods aren't supposed to write to fields/properties.
Anything I'm missing?
@Youssef1313 I think the problematic case is when you have a property with a non-readonly getter. |
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.
Done with review pass (iteration 1)
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.
LGTM Thanks (iteration 2)
Do we want to hold off this PR until we're ready to make the corresponding implementation change? |
Yeah, I think we should just merge it in sync with the implementation change. |
It was a bogus conflict (GitHub found a conflict, but local git reported no conflicts upon merge). |
No description provided.