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

RSRP-288189: Unable to extract method for for loop

$
0
0
Reporter Werner Strydom (bloudraak) Werner Strydom (bloudraak)
Created Feb 7, 2012 6:49:00 AM
Updated Feb 7, 2012 6:49:00 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Sergey Shkredov (serjic.shkredov)
Subsystem Refactoring
Affected versions 6.1
Fixed in build No Fixed in build
Consider the following code snippet:

var a = GetA();
var b = GetA();
var c = GetA();
for (int i = 0; i < 20 && c != 1 && b != 2 && a != 3; i++)
{
   // Do something
   a = GetA();
   b = GetA();
   c = GetA();
}


Select the snippet "c != 1 && b != 2 && a != 3" and try to extract a method. Notice that its not currently possible. I would expect it to be possible. Not sure whether this is a bug (aka it suppose to work) or a feature (it was never intended to work).

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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