Nullness : downcasting should understand nullness information #17961
Build WindowsNoRealsig_testCoreclr failed
Annotations
Check failure on line 1774 in src\Compiler\Checking\MethodCalls.fs
azure-pipelines / fsharp-ci (Build WindowsNoRealsig_testCoreclr)
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 171 in src\Compiler\DependencyManager\DependencyProvider.fs
azure-pipelines / fsharp-ci (Build WindowsNoRealsig_testCoreclr)
src\Compiler\DependencyManager\DependencyProvider.fs#L171
src\Compiler\DependencyManager\DependencyProvider.fs(171,42): error FS3264: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullness warning: Downcasting from 'objnull' into 'string array' can introduce unexpected null values. Cast to 'string array|null' instead or handle the null before downcasting.
Check failure on line 476 in src\Compiler\DependencyManager\DependencyProvider.fs
azure-pipelines / fsharp-ci (Build WindowsNoRealsig_testCoreclr)
src\Compiler\DependencyManager\DependencyProvider.fs#L476
src\Compiler\DependencyManager\DependencyProvider.fs(476,29): error FS3264: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullness warning: Downcasting from 'objnull' into 'string list' can introduce unexpected null values. Cast to 'string list|null' instead or handle the null before downcasting.
Check failure on line 477 in src\Compiler\DependencyManager\DependencyProvider.fs
azure-pipelines / fsharp-ci (Build WindowsNoRealsig_testCoreclr)
src\Compiler\DependencyManager\DependencyProvider.fs#L477
src\Compiler\DependencyManager\DependencyProvider.fs(477,29): error FS3264: (NETCORE_ENGINEERING_TELEMETRY=Build) Nullness warning: Downcasting from 'objnull' into 'string list' can introduce unexpected null values. Cast to 'string list|null' instead or handle the null before downcasting.
Check failure on line 671 in src\Compiler\Utilities\TaggedCollections.fs
azure-pipelines / fsharp-ci (Build WindowsNoRealsig_testCoreclr)
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.