Skip to content

Commit

Permalink
Fix Debug.Assert in GenericDelegateCache (dotnet/coreclr#23755)
Browse files Browse the repository at this point in the history
Signed-off-by: dotnet-bot <[email protected]>
  • Loading branch information
safern authored and Anipik committed Apr 9, 2019
1 parent e8133a0 commit f845535
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ internal static class GenericDelegateCache<TAntecedentResult, TResult>
(Task<Task<TAntecedentResult>[]> wrappedAntecedents, object? state) =>
{
wrappedAntecedents.NotifyDebuggerOfWaitCompletionIfNecessary();
Debug.Assert(state is Func<Task<TAntecedentResult>>);
Debug.Assert(state is Func<Task<TAntecedentResult>[], TResult>);
var func = (Func<Task<TAntecedentResult>[], TResult>)state;
return func(wrappedAntecedents.Result);
};
Expand Down

0 comments on commit f845535

Please sign in to comment.