Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-469209: Remove redundant parantheses warns even when they clarify precedence

$
0
0
Reporter Linus Nilsson (lajnold) 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))
    {
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>