-
Notifications
You must be signed in to change notification settings - Fork 782
Open
Labels
Description
Which library version?
7.0.0-preview.1.g24680b5469
What are the platform(s), environment(s) and related component version(s)?
.NET 10, but lower versions with the System.Linq.AsyncEnumerable compat nuget as well.
What is the use case or problem?
While there are mostly extension methods in the System.Linq.AsyncEnumerable type, the static Empty<TResult>() method is meant to be called via the static class name directly.
This currently results in an ambiguous type error:
Do you have a code snippet or project that reproduces the problem?
public class C {
public IAsyncEnumerable<int> M() => AsyncEnumerable.Empty<int>();
}
What is the expected outcome?
The code should compile without errors
What is the actual outcome?
The type 'AsyncEnumerable' exists in both 'System.Linq.Async, Version=7.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263' and 'System.Linq.AsyncEnumerable, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'