Nullness : downcasting should understand nullness information #17961
Build MacOS failed
Annotations
Check failure on line 1774 in src/Compiler/Checking/MethodCalls.fs
azure-pipelines / fsharp-ci (Build MacOS)
src/Compiler/Checking/MethodCalls.fs#L1774
src/Compiler/Checking/MethodCalls.fs(1774,77): error FS3264: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullness warning: Downcasting from 'objnull' into 'string' can introduce unexpected null values. Cast to 'string|null' instead or handle the null before downcasting.
Check failure on line 671 in src/Compiler/Utilities/TaggedCollections.fs
azure-pipelines / fsharp-ci (Build MacOS)
src/Compiler/Utilities/TaggedCollections.fs#L671
src/Compiler/Utilities/TaggedCollections.fs(671,50): error FS3264: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullness warning: Downcasting from 'obj | null' into 'Set<'T,'ComparerTag>' can introduce unexpected null values. Cast to 'Set<'T,'ComparerTag>|null' instead or handle the null before downcasting.
Check failure on line 1254 in src/Compiler/Utilities/TaggedCollections.fs
azure-pipelines / fsharp-ci (Build MacOS)
src/Compiler/Utilities/TaggedCollections.fs#L1254
src/Compiler/Utilities/TaggedCollections.fs(1254,18): error FS3264: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullness warning: Downcasting from 'obj | null' into 'Map<'Key,'T,'ComparerTag>' can introduce unexpected null values. Cast to 'Map<'Key,'T,'ComparerTag>|null' instead or handle the null before downcasting.
Check failure on line 484 in src/Compiler/AbstractIL/il.fs
azure-pipelines / fsharp-ci (Build MacOS)
src/Compiler/AbstractIL/il.fs#L484
src/Compiler/AbstractIL/il.fs(484,11): error FS3264: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullness warning: Downcasting from 'obj | null' into 'ILAssemblyRef' can introduce unexpected null values. Cast to 'ILAssemblyRef|null' instead or handle the null before downcasting.
Check failure on line 488 in src/Compiler/AbstractIL/il.fs
azure-pipelines / fsharp-ci (Build MacOS)
src/Compiler/AbstractIL/il.fs#L488
src/Compiler/AbstractIL/il.fs(488,22): error FS3264: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullness warning: Downcasting from 'obj | null' into 'ILAssemblyRef' can introduce unexpected null values. Cast to 'ILAssemblyRef|null' instead or handle the null before downcasting.