Nullness issue - static methods on struct do not report nullness warning #17880
Labels
Area-Nullness
Issues related to handling of Nullable Reference Types
Bug
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Issue description
Methods like:
DateTime.Parse
Int32.Parse
require a non-nullable string.
Yet, they do not a report a nullable warning when a possibly null string is passed in.
They do report for the null literal
Choose one or more from the following categories of impact
null
constructs in code not using the checknulls switch.null
,not null
).Operating System
Windows (Default)
What .NET runtime/SDK kind are you seeing the issue on
.NET SDK (.NET Core, .NET 5+)
.NET Runtime/SDK version
No response
Reproducible code snippet and actual behavior
No response
Possible workarounds
No response
The text was updated successfully, but these errors were encountered: