Project
ReSharper
Priority
Critical
Type
Bug
Fix versions
6.0 EAP
State
Fixed
Assignee
Olga Lobacheva
Subsystem
PSI
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Olga Lobacheva
    2 years ago (19 May 2009 18:49)
  • Updated by   Olga Lobacheva
    17 months ago (31 Aug 2010 16:55)
  • Jira: RSRP-108338
    (history, comments)
 
RSRP-108338 Method group resolve in C# loses it's errorInfo
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
namespace Tests
  {
    public class Class
    {
      public Result S()
      {
        IList<ApplicableCandidate> fullyApplicableCandidates = new List<ApplicableCandidate>();
        if (fullyApplicableCandidates.Count == 0)
          return null;

        if (fullyApplicableCandidates.First.IsDynamicDispatch)     // First = multiple candidates
          return null;

        Uff f = new Uff();
        Func<int, int> v = f.Bar.Bla;  //should resolve to extension ?   

        return null;
      }
    }

    public class Uff
    {
      private bool Bar(string x) { return false; }
      private bool Bar(params string[] x) { return true; }
    }

    public static class Ext
    {
      public static int Bar(this Uff c, int f){return 8;}
    }
  }
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments