Project
ReSharper
Priority
Normal
Type
Bug
Fix versions
2.5.2, 3.0
State
Fixed
Assignee
Andrey Simanovsky
Subsystem
Quick Fixes
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Hofer
    5 years ago (30 Jan 2007 10:39)
  • Updated by   Hofer
    4 years ago (26 Mar 2007 19:31)
  • Jira: RSRP-34992
    (history, comments)
 
RSRP-34992 Remove unreachable code quickfix removes both parts from an if statement.
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
if (1.0 != 1.0) {
for (int i=0; i<n; i++) {
b[i] = a[i]*1;
}
}
else {
for (int i=0; i<n; i++) {
b[i] = a[i];
}
}

Resharper says "Expression is always true" and offers to "Remove unreachable code" in a quickfix.
However, when applying the quickfix it removes the else part as well and leaves only a semicolon.




Issue was closed
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments