Skip to content
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

Add MemberNotNullWhen attribute to IsSuccessStatusCode #1303

Merged

Conversation

dannyBies
Copy link
Contributor

What kind of change does this PR introduce?

Improve support for nullable reference types.

What is the current behavior?

See this github issue for more details

What is the new behavior?

Improved support for nullable reference types.

What might this PR break?
If it is possible for Content to be null when IsSuccessStatusCode == true or if it is possible for Error to be null when IsSuccessStatusCode == false, this can lead to the compiler to believe the property is not null while in reality it is.

Please check if the PR fulfills these requirements

  • [ N/A ] Tests for the changes have been added (for bug fixes / features)
  • [ N/A ] Docs have been added / updated (for bug fixes / features)

Other information:
I don't believe this change can be unit tested, I've manually tested the new behaviour which worked as expected.

@clairernovotny clairernovotny merged commit 92ee888 into reactiveui:main Feb 3, 2022
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants