public class A
{
static void C<T>(TaskCompletionSource<T> taskSource, Func<Task<T>> source)
{
}
public void B()
{
TaskCompletionSource<object> ts = null;
Task a = null;
C(ts, async () =>
{
await a;
return null;
});
}
}
I will output this error:
INTERNAL ERROR: ResolveResult [CSharpInvocationResolveResult [SpecializedMethod A.C[System.Object](taskSource:System.Threading.Tasks.TaskCompletionSource`1[[System.Object]], source:System.Func`1[[System.Threading.Tasks.Task`1[[System.Object]]]]):System.Void]] is an error.. Please report this as an issue on https://github.com/erik-kallen/SaltarelleCompiler/
Let's have the following simplified code:
I will output this error: