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

Fix Debug.Assert in GenericDelegateCache #23755

Merged
merged 1 commit into from
Apr 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Debug.Assert in GenericDelegateCache
  • Loading branch information
safern committed Apr 5, 2019
commit c0e078d41b4c26e992e8726b8d20f375221f96cc
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