Address remaining nullable reference type issues#1515
Merged
BillWagner merged 4 commits intodotnet:draft-v8from Jan 14, 2026
Merged
Address remaining nullable reference type issues#1515BillWagner merged 4 commits intodotnet:draft-v8from
BillWagner merged 4 commits intodotnet:draft-v8from
Conversation
Fixes item 2 in dotnet#1228
Fixes the 3rd and 4th item in the list.
jnm2
reviewed
Dec 19, 2025
Co-authored-by: Joseph Musser <me@jnm2.com>
BillWagner
commented
Jan 14, 2026
jnm2
approved these changes
Jan 14, 2026
BillWagner
commented
Jan 14, 2026
Co-authored-by: Joseph Musser <me@jnm2.com>
jskeet
reviewed
Jan 14, 2026
| - Maybe null when its declaration is in text where the annotations flag is enabled. | ||
| - Not null when its declaration is in text where the annotations flag is disabled. | ||
| - The default null state of a non-nullable reference type is not null. | ||
| - The default state of the `null` literal (§6.4.5.7) is maybe null. |
Contributor
There was a problem hiding this comment.
@RexJaeschke Please file an issue (assign it to me) for expressions without types, referring to this PR.
jskeet
approved these changes
Jan 14, 2026
BillWagner
added a commit
that referenced
this pull request
Jan 16, 2026
* Bump Microsoft.NET.Test.Sdk and 2 others (#1526) Bumps Microsoft.NET.Test.Sdk from 17.14.1 to 18.0.1 Bumps Newtonsoft.Json from 13.0.3 to 13.0.4 Bumps xunit.runner.visualstudio from 3.1.4 to 3.1.5 --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-version: 18.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: dotnet - dependency-name: Newtonsoft.Json dependency-version: 13.0.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dotnet - dependency-name: xunit.runner.visualstudio dependency-version: 3.1.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dotnet ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump Microsoft.NET.Test.Sdk, NUnit.Analyzers and NUnit3TestAdapter (#1525) Bumps Microsoft.NET.Test.Sdk from 17.14.1 to 18.0.1 Bumps NUnit.Analyzers from 4.10.0 to 4.11.2 Bumps NUnit3TestAdapter from 5.1.0 to 6.0.1 --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-version: 18.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: dotnet - dependency-name: NUnit.Analyzers dependency-version: 4.11.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dotnet - dependency-name: NUnit3TestAdapter dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: dotnet ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Address remaining nullable reference type issues (#1515) * Warning on lifted conversion w/ null Fixes item 2 in #1228 * Specify default null state of default Fixes the 3rd and 4th item in the list. * Update standard/types.md Co-authored-by: Joseph Musser <me@jnm2.com> * Apply suggestions from code review Co-authored-by: Joseph Musser <me@jnm2.com> --------- Co-authored-by: Joseph Musser <me@jnm2.com> * [create-pull-request] automated change (#1531) Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com> * Add an exception to the requirement that partial method declarations have the same modifiers (#1521) * Add an exception to the requirement that partial method declarations have the same modifiers * Update standard/classes.md --------- Co-authored-by: Jon Skeet <jonskeet@google.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joseph Musser <me@jnm2.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com> Co-authored-by: Jon Skeet <jonskeet@google.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1228
default(anddefault(T)) expression, and thenullliteral expression.