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 stephentoub committed Apr 6, 2019
1 parent 6f9663b commit 192abb3
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 192abb3

Please sign in to comment.