Seemingly needless error CS0121: The call is ambiguous between the following methods or properties: 'x(Action)' and 'x(Func<Task>)' #14885
Labels
Area-Language Design
Feature Request
Language-C#
Resolution-Duplicate
The described behavior is tracked in another issue
Version Used:
VS 2015 Update 3
Steps to Reproduce:
Attempt to compile the following code:
Expected Behavior:
Code compiles and the
Action
overload is used inz()
.Actual Behavior:
CS0121: The call is ambiguous between the following methods or properties: 'foo.yyyyyyyyyyyyyyy(Action)' and 'foo.yyyyyyyyyyyyyyy(Func)'
Further notes:
Explicitly casting it as
yyyyyyyyyyyyyyy((Action)x);
works fine.Casting as
yyyyyyyyyyyyyyy((Func<Task>)x);
is a compile error.The text was updated successfully, but these errors were encountered: