-
Notifications
You must be signed in to change notification settings - Fork 4.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
Warn on implicit copies for event assignment within readonly members #35710
Warn on implicit copies for event assignment within readonly members #35710
Conversation
src/Compilers/CSharp/Test/Semantic/Semantics/ReadOnlyStructsTests.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Test/Semantic/Semantics/ReadOnlyStructsTests.cs
Outdated
Show resolved
Hide resolved
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)
Need a second sign off for a small change please @dotnet/roslyn-compiler |
@RikkiGibson It looks like some tests are failing |
Done with review pass (iteration 3) |
Oops, changing the whitespace broke the expected diagnostic locations. Will fix. |
@dotnet/roslyn-compiler Please review this small bug fix. |
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.
Consider testing on a readonly struct as well as individual readonly members. Otherwise, LGTM (commit 6)
Resolves #35610