projects
/
platform
/
upstream
/
coreclr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Assert in ValueTask (#17511)
[platform/upstream/coreclr.git]
/
src
/
mscorlib
/
shared
/
System
/
Threading
/
Tasks
/
ValueTask.cs
diff --git
a/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs
b/src/mscorlib/shared/System/Threading/Tasks/ValueTask.cs
index
53f746b
..
8ee1a20
100644
(file)
--- 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;
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)
{
if (obj == null)
{