Nullness issue - No warning when nullable generic return type used with anonymous record #17951
Open
1 of 7 tasks
Labels
Milestone
Issue description
The return type of
Deserialize
is'T | null
, but a warning is only raised for the nominal record onc.x
, yeta.x
andb.x
will throw too.Additionally, there's a discrepancy in tooltips -
a
isval a: {| a: int |}
, but onb
, where the type is aliased, it isval b: RA | null
.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
9.0.100-rc.2.24474.11
Reproducible code snippet and actual behavior
No response
Possible workarounds
No response
The text was updated successfully, but these errors were encountered: