Use correct get / set inside ref safety analysis
This fixes a few cases where our code looked at the wrong accessor when doing ref safety analysis.
closes https://github.com/dotnet/roslyn/issues/35606 closes https://github.com/dotnet/roslyn/issues/73550 related https://github.com/dotnet/roslyn/issues/73872 related https://github.com/dotnet/csharplang/pull/8253
@dotnet/roslyn-compiler PTAL
@dotnet/roslyn-compiler PTAL
Thanks for the feedback. Updated.
Done with review pass (commit 9)
Dropping to draft while I work out a few items.
@dotnet/roslyn-compiler PTAL. I dismissed previous sign offs because I made substantial changes to the PR.
FYI: posted a spec update for object initializers around ref safety
https://github.com/dotnet/csharplang/pull/8253
@cston, @jjonescz, @RikkiGibson PTAL
/azp run
Azure Pipelines successfully started running 2 pipeline(s).