dotnet / csharpstandard

Working space for ECMA-TC49-TG2, the C# standard committee.
Creative Commons Attribution 4.0 International
718 stars 86 forks source link

[Nullable Reference Types] Specify behavior for nullable analysis attributes #1092

Open BillWagner opened 6 months ago

BillWagner commented 6 months ago

There are a number of attributes read by the compiler that support nullable flow analysis, and provide some additional syntactic rules where those attributes are applied.

The list of attributes, and how that affects the syntax where applied should be normative. How those attributes affect flow analysis may include both normative and informative text.

BillWagner commented 1 month ago

Adding the meeting discuss label based on discussion in our September meeting.

Do any of these attributes need to be added to the standard?

They are used only to inform the static null state analysis for the compiler.

jskeet commented 1 month ago

Decision on 2024-10-02: