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

RSRP-379035: Possible missing context action

$
0
0
Reporter Leland Green (leland) Leland Green (leland)
Created Jul 16, 2013 8:19:52 PM
Updated Apr 26, 2018 6:21:17 PM
Resolved Apr 26, 2018 6:19:23 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Bug
Fix version Unidentified prior version
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
With this code:

int n = 0;
foreach (var v in someiter)
{
...
n++;
}

ReSharper offers to split declaration and assignment. In the the scroll bar column it warns that it is assigned but never used. It does not offer to remove the variable, though. (I think it usually does.)

Please see the attached screenshots to enhance my explanation. ;-)

Thanks,
Leland...

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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