Reporter | Friedrich von Never (ForNeVeR) |
---|---|
Created | Apr 21, 2018 4:50:55 PM |
Updated | Apr 26, 2018 10:26:14 AM |
Subsystem | Code Analysis - C# |
Assignee | Ivan Serduk (IvanSerduk) |
Priority | Normal |
State | Submitted |
Type | Bug |
Fix version | No Fix versions |
Affected versions | No Affected versions |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
Consider this code:
In this case, Rider tells that the parentheses around
It looks like Rider's parser also has problems with this code: it sometimes consider the code as valid and sometimes as invalid.
public static void Main() {
int x = 0, y = 0, z = 0, w = 0;
System.Console.WriteLine("{0}{1}", (x < y), z > (w + 1));
}
In this case, Rider tells that the parentheses around
(x < y)
are redundant. That's not the case, because code becomes invalid. See the screenshots:It looks like Rider's parser also has problems with this code: it sometimes consider the code as valid and sometimes as invalid.