System.Linq.Async is being assimilated into .NET 10 but System.Linq.AsyncEnumerable doesn't seem to be on parity and breaks pre-.NET 10 code. · Issue #49162 · dotnet/sdk · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like async lambdas are no longer supported in System.Linq.AsyncEnumerable in .NET 10 but at the same time the compiler will raise an ambiguous reference error if System.Linq.Async is installed.
To Reproduce
previously, with System.Linq.Async, something along the lines of the following was possible
Cannot convert async lambda expression to delegate type 'Func<int, bool>'.
An async lambda expression may return void, Task or Task<T>, none of which are convertible to 'Func<int, bool>'.
Further technical details
Visual Studio Enterprise 2022 (64-bit) 17.14.2 Preview 1.0
.NET 10.0.100-preview.4.25258.110
The text was updated successfully, but these errors were encountered:
Describe the bug
It seems like async lambdas are no longer supported in
System.Linq.AsyncEnumerable
in .NET 10 but at the same time the compiler will raise an ambiguous reference error ifSystem.Linq.Async
is installed.To Reproduce
previously, with
System.Linq.Async
, something along the lines of the following was possiblehowever, with
System.Linq.AsyncEnumerable
, the equivalent doesn't compileExceptions (if any)
Further technical details
The text was updated successfully, but these errors were encountered: