Reporter | Linus Nilsson (lajnold) |
---|---|
Created | Apr 11, 2018 12:43:28 PM |
Updated | Apr 11, 2018 12:45:13 PM |
Subsystem | No Subsystem |
Assignee | Unassigned |
Priority | Normal |
State | Submitted |
Type | Unspecified |
Fix version | No Fix versions |
Affected versions | 2017.3.5 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
ReSharper warns about the parentheses around y && z
even though I have "If not clarifies precedence" checked. My opinion (which is, of course, subjective) is that they do clarify the precedence. It's not a major hurdle since the severity is set to "Hint", but since there is the option of "clarifies precedence", I think it should take that into account.
public void Fun(bool x, bool y, bool z)
{
if (x || (y && z))
{
}
}