History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-34992
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Andrey Simanovsky
Reporter: Hofer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Remove unreachable code quickfix removes both parts from an if statement.

Created: 30 Jan 07 09:39   Updated: 26 Mar 07 18:31
Component/s: Quick Fixes
Fix Version/s: 3.0, 2.5.2
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 326
Fixed in build: 407


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.