diff --git a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableQuery.cs b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableQuery.cs index a1b14c4bec..189d03ce8e 100644 --- a/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableQuery.cs +++ b/Ix.NET/Source/System.Linq.Async.Queryable/System/Linq/AsyncEnumerableQuery.cs @@ -103,7 +103,7 @@ ValueTask IAsyncQueryProvider.ExecuteAsync(Expression expressi throw new ArgumentNullException(nameof(expression)); } - if (!typeof(Task).IsAssignableFrom(expression.Type)) + if (!typeof(ValueTask).IsAssignableFrom(expression.Type)) { throw new ArgumentException("The specified expression is not assignable to the result type.", nameof(expression)); }