Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Fix Debug.Assert in GenericDelegateCache (#23755)
Browse files Browse the repository at this point in the history
  • Loading branch information
safern authored and stephentoub committed Apr 5, 2019
1 parent 3816dba commit bd05029
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 bd05029

Please sign in to comment.