Nullness issue - Option.ofObj against non-nullable ref type does not trigger FS3262 when using |> #18014
Open
1 of 7 tasks
Labels
Area-Nullness
Issues related to handling of Nullable Reference Types
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone
Issue description
When piping a non-nullable reference type value into
Option.ofObj
, FS3262 should trigger, but it does not.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
.NET 9
Reproducible code snippet and actual behavior
Possible workarounds
Do not use
|>
The text was updated successfully, but these errors were encountered: