C#8 compiler reports CS8620 for IEnumerable<T?> after filtering for not null #38812
Labels
Area-Compilers
Area-Language Design
Feature - Nullable Reference Types
Nullable Reference Types
Resolution-Duplicate
The described behavior is tracked in another issue
Milestone
Version Used:
dotnet-sdk-3.0.100
Steps to Reproduce:
enable nullable
Expected Behavior:
no warning
Actual Behavior:
Warning CS8620 Argument of type 'IEnumerable<string?>' cannot be used for parameter 'notNull' of type 'IEnumerable' in 'void Check(IEnumerable notNull)' due to differences in the nullability of reference types.
my current workaround is
The text was updated successfully, but these errors were encountered: