LanguageExt.QueryExtensions.Distinct<T> conflicts with IQueryable.Distinct

Author: DemivanCreated Jan 28, 2026Updated Jan 28, 2026

Adding global using for v5 LanguageExt breaks Linq method chains:

Error CS0121 : The call is ambiguous between the following methods or properties:
'LanguageExt.QueryExtensions.Distinct<T>(System.Linq.IQueryable<T>)' and
'System.Linq.Queryable.Distinct<TSource>(System.Linq.IQueryable<TSource>)'

I see no reason to have this extension method as IQueryable has Distinct already. This was brought up before - https://github.com/louthy/language-ext/issues/836#issuecomment-734315836