Version Used:
VS2017 15.5 P3
Steps to Reproduce:
using System;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
Func<string, Task> f = x => { return Task.CompletedTask; };
Func<string, Task> actual = null;
AssertSame(f, actual);
}
public static void AssertSame(object expected, object actual) { }
}
Expected Behavior:
No suggestion to convert f to a local function, since it breaks the call to AssertSame or a cast to the Func type at the callsite.
Actual Behavior:
Suggestion, which breaks the callsite.
Also the newline in the declaration of f looks really bad.
Version Used:
VS2017 15.5 P3
Steps to Reproduce:
Expected Behavior:
No suggestion to convert
fto a local function, since it breaks the call toAssertSameor a cast to theFunctype at the callsite.Actual Behavior:
Suggestion, which breaks the callsite.
Also the newline in the declaration of
flooks really bad.