Skip to content

Compilation error #55855

Closed
Closed

Description

When on .NET SDK 6.0.100-preview.7.21359.1

error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Select<TSource, TResult>(System.Collections.Generic.IEnumerable<TSource>, System.Func<TSource, TResult>)' and 'Internal.CommandLine.Enumerable.Select<T, U>(System.Collections.Generic.IEnumerable<T>, System.Func<T, U>)'

This is code from here

public static IEnumerable<U> Select<T, U>(this IEnumerable<T> values, Func<T, U> func)
{
Debug.Assert(values != null);
foreach (T value in values)
{
yield return func(value);
}
}

and here
public static IEnumerable<T> Concat<T>(this IEnumerable<T> first, IEnumerable<T> second)
{
return Linq.Enumerable.Concat(first, second);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions