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

Key: RSRP-28358
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Lomov
Reporter: Andrey Simanovsky
Votes: 0
Watchers: 0
Operations

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

Confusing error message about resolve conflict

Created: 30 Aug 06 14:27   Updated: 20 Jun 07 10:59
Component/s: PSI - Resolve
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

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


 Description  « Hide
I have the following code:
List<AccessRights> set = new List<AccessRights>();
        set.Sort(delegate(AccessRights x, AccessRights y) { });

ReSharper, instead of telling me that I a return statement is missing in the anonymous delegate, tells me there is a conflicting usage of method Sort(IComparer<...>) and Sort(Comparion<...>). ReSharper must be smarter in this situation and detect that what I need is adding return statement. The following code is correct:

List<AccessRights> set = new List<AccessRights>();
        set.Sort(delegate(AccessRights x, AccessRights y) { return x-y; });


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