Skip to content

Commit

Permalink
Suppress incorrect nullability warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Mar 19, 2020
1 parent 00e13b7 commit c9e53dd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ public bool Remove(KeyValuePair<TKey, TValue> item)
return Remove(item.Key);
}

#pragma warning disable CS8767 // Nullability of reference types in type of parameter doesn't match implicitly implemented member because of nullability attributes. https://github.com/dotnet/roslyn/issues/42552
public bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
#pragma warning restore CS8767 // Nullability of reference types in type of parameter doesn't match implicitly implemented member because of nullability attributes.
{
Debug.Assert(!IsDisposed);
return _coreAnalysisData.TryGetValue(key, out value);
Expand Down

0 comments on commit c9e53dd

Please sign in to comment.