Microsoft.CodeAnalysis.FxCopAnalyzers
v2.6.3
using System;
public class A<T> : IEquatable<T>
where T : A<T>
{
public virtual bool Equals(T other) => false;
public override bool Equals(object obj) => Equals(obj as T);
}
public class B : A<B>
{
}
No code analysis warnings are produced for class B.
The definition of class B is annotated with warning CA1067 "Type B should override Equals because it implements IEquatable
If I recall correctly, v2.6.2 didn't exhibit this behavior.
Any news?
In my opinition possible cause of this issue is fix of #1914.
@pantosha That seems correct. Would you like to contribute a PR to fix it?
Manish, thank you very much for this one, looking forward to new release.