diff options
author | Ben Adams <thundercat@illyriad.co.uk> | 2018-04-11 12:36:27 +0100 |
---|---|---|
committer | Stephen Toub <stoub@microsoft.com> | 2018-04-11 07:36:27 -0400 |
commit | 6c9cbf0d8d51a6d037495562999d2a4454101680 (patch) | |
tree | 21a8abab4b13501a6752aac78b60169cb14916da | |
parent | 785483cb0d317b0bf7b7615aa4fb76bb4dc8f8c9 (diff) | |
download | coreclr-6c9cbf0d8d51a6d037495562999d2a4454101680.tar.gz coreclr-6c9cbf0d8d51a6d037495562999d2a4454101680.tar.bz2 coreclr-6c9cbf0d8d51a6d037495562999d2a4454101680.zip |
Fix Assert in ValueTask (#17511)
-rw-r--r-- | src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs b/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs index 53f746bfbb..8ee1a2026e 100644 --- a/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs +++ b/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs @@ -529,7 +529,7 @@ namespace System.Threading.Tasks public Task<TResult> AsTask() { object obj = _obj; - Debug.Assert(obj == null || obj is Task<TResult> || obj is IValueTaskSource); + Debug.Assert(obj == null || obj is Task<TResult> || obj is IValueTaskSource<TResult>); if (obj == null) { |