Skip to content

Conversation

@pkulikov
Copy link
Contributor

Fixes #27177

@BillWagner @Uzivatel919 I agree that the statement "mutate immutable properties or fields" is at least confusing, misleading, so I've removed it and simplified the language. At the same time, I don't think we need to specify that both mutable and init-only members can be updated only: I believe the compiler error messages do that well.

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

I like the wording here @pkulikov

I'll :shipit: now.

@BillWagner BillWagner merged commit 5693e7a into dotnet:main Nov 23, 2021
@pkulikov pkulikov deleted the patch-1 branch November 23, 2021 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nondestructive mutation – not all immutable members can be changes using with expression

3 participants