Skip to content

Fix typo#62192

Merged
333fred merged 2 commits intodotnet:mainfrom
333fred:fix-typo
Jun 28, 2022
Merged

Fix typo#62192
333fred merged 2 commits intodotnet:mainfrom
333fred:fix-typo

Conversation

@333fred
Copy link
Copy Markdown
Member

@333fred 333fred commented Jun 28, 2022

Fix typo pointed out by @RikkiGibson in #62172 (comment).

Fix typo pointed out by @RikkiGibson in dotnet#62172 (comment).
@333fred
Copy link
Copy Markdown
Member Author

333fred commented Jun 28, 2022

@dotnet/roslyn-compiler for a couple of reviews of this small concurrency fix.

if (_lazyRequiredMembers == RequiredMembersErrorSentinel)
if (lazyRequiredMembers == RequiredMembersErrorSentinel)
{
if (lazyRequiredMembers.IsDefault)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I didn't understand under what conditions we can:

  1. have 'lazyRequiredMembers' be equal to the error sentinel (which is non-empty, looks like?)
  2. and then have it turn out to be default.

Could you please clarify?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I believe this was incorrect logic left over from when I was using a sentinel in a different manner. I've corrected the logic to immediately return false when the sentinel is encountered.

Copy link
Copy Markdown
Member

@RikkiGibson RikkiGibson left a comment

Choose a reason for hiding this comment

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

LGTM assuming CI passes

@333fred 333fred enabled auto-merge (squash) June 28, 2022 20:34
@333fred 333fred merged commit da7e855 into dotnet:main Jun 28, 2022
@ghost ghost added this to the Next milestone Jun 28, 2022
@333fred 333fred deleted the fix-typo branch June 28, 2022 22:07
@allisonchou allisonchou modified the milestones: Next, 17.4 P1 Jul 26, 2022
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.

4 participants