Confirm whether misused nullability attributes should produce diagnostics #26783
Labels
Area-Compilers
Area-Language Design
New Language Feature - Nullable Reference Types
Nullable Reference Types
Milestone
For instance,
[EnsureNotNull]
on a value type parameter, or[NotNullWhenFalse]
on a parameter whose containing method doesn't return a boolean.We need to review this, as it poses a compatibility concern.
My personal view is that if we use brand new attributes in the
System.Runtime.CompilerServices
namespace, then such warnings/errors are fair game (users are not supposed to define types inSystem
).Tagging @gafter
The text was updated successfully, but these errors were encountered: