RefactoringEssentials icon indicating copy to clipboard operation
RefactoringEssentials copied to clipboard

RECS0088 suggests to replace with 'true' when actually false

Open Ghost4Man opened this issue 7 years ago • 1 comments

A very simple array equality comparison such as this:

new[] { 1, 2, 3 } == new[] { 1, 2, 3 }

produces this warning:

RECS0088: Replace with 'true'

But if you test that expression, it is actually false, since these are two different arrays.

Ghost4Man avatar Sep 17 '17 20:09 Ghost4Man

It looks like that analyzer compares things it should not.

nick-morhun avatar Jan 25 '18 12:01 nick-morhun