You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This NRE is a special case of the fact that the parameterless constructor of ImmutableArray<T> results in an object that throws on most access. Perhaps the new rule can trigger on uses of that constructor instead. If a "null" value of ImmutableArray<T> is needed, I'd say the developer should be explicit and write default.
Using a collection initializer with the
ImmutableArray
type, causes aNullReferenceException
.SharpLab
The text was updated successfully, but these errors were encountered: