Skip to content

Correctly classify null literal conversion#1637

Open
BillWagner wants to merge 1 commit intodotnet:draft-v8from
BillWagner:implicit-null-reference-conversion
Open

Correctly classify null literal conversion#1637
BillWagner wants to merge 1 commit intodotnet:draft-v8from
BillWagner:implicit-null-reference-conversion

Conversation

@BillWagner
Copy link
Copy Markdown
Member

Fixes #1631

None of the references to 10.2.8 (implicit reference conversions) specify that a null literal conversion applies, but it obviously does. A conversion from the null literal to a reference type was clasified as both a null literal conversion and an implicit reference conversion. To fix this, make the following two changes:

  • Add normative language that a null literal conversion is classified as an implicit reference conversions.
  • Add an informative note in 10.2.8 that provides a cross reference to the same.

Add normative language that a null literal conversion is classified as an implicit reference conversions. Add an informative note in 10.2.8 that provides a cross reference to the same.
@BillWagner BillWagner added the meeting: discuss This issue should be discussed at the next TC49-TG2 meeting label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meeting: discuss This issue should be discussed at the next TC49-TG2 meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

null literal conversions and implicit reference conversions

1 participant