Skip to content

C# 14: Null conditional assignment.#21118

Closed
michaelnebel wants to merge 4 commits into
github:mainfrom
michaelnebel:csharp14/nullconditionalassignment
Closed

C# 14: Null conditional assignment.#21118
michaelnebel wants to merge 4 commits into
github:mainfrom
michaelnebel:csharp14/nullconditionalassignment

Conversation

@michaelnebel

@michaelnebel michaelnebel commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

In this PR we add tests for null conditional assignments. The null conditional assignments are supported out of the box by the extractor.
As far as I can tell, we don't need to make any modifications to the guards library, the dereference logic or the nullness logic. However, it appears that conditional access has been overlooked in the MaybeNullExpr class in the Nullness module. This has been fixed.

@michaelnebel

Copy link
Copy Markdown
Contributor Author

Closed in favor of #21158

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.

1 participant