Project
ReSharper
Priority
Critical
Type
Bug
Fix versions
5.1
State
Duplicate
Assignee
Olga Lobacheva
Subsystem
PSI
Affected versions
No Affected versions
Fixed in build
5.0.1646.19  
  • Created by   Olga Lobacheva
    5 years ago (14 Dec 2006 22:14)
  • Updated by   Olga Lobacheva
    18 months ago (14 Jul 2010 18:52)
  • Jira: RSRP-33463
    (history, comments)
 
RSRP-33463 Method Group ambigity with property problem
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
namespace Bug
{

  public interface I1
  {
    void P();
  }

  public interface I2
  {
    bool P { get;}
  }

  public delegate void D();

  public class Test<T> where T : I1, I2, new()
  {
    public void F()
    {
      T t = new T();
      t.P();
      D d = t.P;
    }
  }
}
Comments (3)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Olga Lobacheva
  Olga Lobacheva
14 Dec 2006 22:30
5 years ago
typeParameterMembers3.cs in psi/highlighting
Vladimir Reshetnikov
  Vladimir Reshetnikov
14 Oct 2009 21:20
2 years ago
The compiler violates the spec here and issues warning CS0467 instead of error. But this is know deviation and is not going to be fixed because it could break existing code.
If you fix this, do not forget to issue a warning.
Olga Lobacheva
  Olga Lobacheva
15 Oct 2009 13:30
2 years ago
Ok, thanks. :)