Răsfoiți Sursa

Fix Scan generic types.

Bart De Smet 6 ani în urmă
părinte
comite
e3080a1784

+ 3 - 3
Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/Scan.cs

@@ -59,7 +59,7 @@ namespace System.Linq
 #if USE_ASYNC_ITERATOR
             return AsyncEnumerable.Create(Core);
 
-            async IAsyncEnumerator<TSource> Core(CancellationToken cancellationToken)
+            async IAsyncEnumerator<TAccumulate> Core(CancellationToken cancellationToken)
             {
                 TAccumulate res = seed;
 
@@ -155,7 +155,7 @@ namespace System.Linq
 #if USE_ASYNC_ITERATOR
             return AsyncEnumerable.Create(Core);
 
-            async IAsyncEnumerator<TSource> Core(CancellationToken cancellationToken)
+            async IAsyncEnumerator<TAccumulate> Core(CancellationToken cancellationToken)
             {
                 TAccumulate res = seed;
 
@@ -182,7 +182,7 @@ namespace System.Linq
 #if USE_ASYNC_ITERATOR
             return AsyncEnumerable.Create(Core);
 
-            async IAsyncEnumerator<TSource> Core(CancellationToken cancellationToken)
+            async IAsyncEnumerator<TAccumulate> Core(CancellationToken cancellationToken)
             {
                 TAccumulate res = seed;