Reporter | 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:
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).
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).