
|
If you were logged in you would be able to see more operations.
|
|
|
ReSharper
Created: 01 Feb 07 19:03
Updated: 20 Jun 07 11:01
|
|
| Component/s: |
PSI - Resolve
|
| Fix Version/s: |
4.0
|
|
Security Level:
|
Everybody
(All jira users)
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
|
Consider methods like List<T>.Sort(). They have several overloads only one of which accepts a delegate. However, when there is a call
someList.Sort(delegate(){}) and the anonymous method fails to have the correct signature a "cannot resolve: multiple candidates" error is shown on the Sort method. Very inconvenient.
Expected behavior. It makes sense to pick up the List<T>.Sort() signature that has a delegate parameter and show errors about incorrect signature or cannot cast return value in the anonymous method.
|
|
Description
|
Consider methods like List<T>.Sort(). They have several overloads only one of which accepts a delegate. However, when there is a call
someList.Sort(delegate(){}) and the anonymous method fails to have the correct signature a "cannot resolve: multiple candidates" error is shown on the Sort method. Very inconvenient.
Expected behavior. It makes sense to pick up the List<T>.Sort() signature that has a delegate parameter and show errors about incorrect signature or cannot cast return value in the anonymous method. |
Show » |
| There are no comments yet on this issue.
|
|