|
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 |
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();
}