Closed jnm2 closed 5 years ago
This didn't go away in alpha.69 and I'm just now realizing that it's not an incorrect warning when IEnumerable<>
is invariant, as it is in net35.
For future readers, this is the link @sharwell gave when I was asking about ICollection<string>
implicitly converting to IEnumerable<string?>
: https://github.com/dotnet/roslyn/issues/38261
I'm not sure of the cause, but I'm seeing this on net472 using alpha 53 and Microsoft.NETCore.App.Ref 3.0.0:
StringComparer
does in fact implementIEqualityComparer<string?>
, notIEqualityComparer<string>
. If I targetnetcoreapp3.0
, the warning goes away.