Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions standard/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,8 @@

The ***default null state*** of an expression is determined by its type, and the state of the annotations flag when it is declared:

- The default state of the `null` literal (§6.4.5.7) is maybe null.
- The default state of a default value expression (§12.8.21) is not null when the type is a non-nullable value type, otherwise maybe null.
- The default state of the `null` literal ([§6.4.5.7](lexical-structure.md#6457-the-null-literal)) is maybe null.
- The default state of a default value expression ([§12.8.21](expressions.md#12821-default-value-expressions)) is not null when the type is a non-nullable value type, otherwise maybe null.
- For all other expressions:
- The default null state of an expression whose type is a nullable reference type is:
- Maybe null when its declaration is in text where the annotations flag is enabled.
Expand Down Expand Up @@ -1019,8 +1019,8 @@
> {
> var t = new Test();
> if (t.DisappearingProperty != null)
> {

Check warning on line 1022 in standard/types.md

View workflow job for this annotation

GitHub Actions / Markdown to Word Converter

standard/types.md#L1022

MDC032::Line length 82 > maximum 81
> int len = t.DisappearingProperty.Length; // No warning. A compiler can

Check warning on line 1023 in standard/types.md

View workflow job for this annotation

GitHub Actions / Markdown to Word Converter

standard/types.md#L1023

MDC032::Line length 83 > maximum 81
> // assume property is stateful
> }
> }
Expand Down Expand Up @@ -1171,7 +1171,7 @@
>
> *end example*

A compiler may issue a warning when the result of a lifted conversion operator (§10.6.2) is a reference type and is converted to a non-nullable reference type, since the result of a lifted conversion operator is maybe-null.
A compiler may issue a warning when the result of a lifted conversion operator ([§10.6.2](conversions.md#1062-lifted-conversions)) is a reference type and is converted to a non-nullable reference type, since the result of a lifted conversion operator is maybe-null.

> <!-- Example: {template:"code-in-class-lib", name:"LiftedOperator", ignoredWarnings:["CS8600"]} -->
> ```csharp
Expand Down
Loading