"Merge into pattern" error
In a project with C# 9 enabled, given the code:
1 <= index && index <= 26
R# suggests that I "merge into pattern". Doing that results in:
index <= 1 and <= 26
This is clearly incorrect - the first condition has been inverted. The correct code should be:
index >= 1 and <= 26
R# 2021.1.3
Please sign in to leave a comment.
Hello Richard,
This is a known issue - https://youtrack.jetbrains.com/issue/RSRP-483825. It's fixed in ReSharper 2021.2 EAP, you are welcome to try it - https://www.jetbrains.com/resharper/nextversion/#section=windows
Thank you.