Project
ReSharper
Priority
Normal
Type
Bug
Fix versions
4.1
State
Fixed
Assignee
Evgeny Pasynkov
Subsystem
No subsystem
Affected versions
No Affected versions
Fixed in build
5.0.1612.107  
  • Created by   Vladimir Reshetnikov
    3 years ago (04 Jun 2008 18:21)
  • Updated by   Vladimir Reshetnikov
    3 years ago (05 Jun 2008 17:27)
  • Jira: RSRP-71067
    (history, comments)
 
RSRP-71067 error CS0121: The call is ambiguous between the following methods or properties: 'P.Foo(System.Func<A,object>)' and 'P.Foo(System.Func<B,object>)'
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
using System;

class P
{
    static void Main()
    {
        Foo(x => x.X() as object); // error CS0121: The call is ambiguous between the following methods or properties: 'P.Foo(System.Func<A,object>)' and 'P.Foo(System.Func<B,object>)'
    }

    static extern void Foo(Func<A, object> x);
    static extern void Foo(Func<B, object> x);

}

class A
{
    public Func<int> X { get; set; }
}

class B
{
    public extern string X();
}


Issue was closed
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments