roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

Avoid span conversion in delegate extension receiver

Open jjonescz opened this issue 8 months ago • 4 comments

An extension method Cᵢ.Mₑ is eligible if:

  • Cᵢ is a non-generic, non-nested class
  • The name of Mₑ is identifier
  • Mₑ is accessible and applicable when applied to the arguments as a static method as shown above
  • An implicit identity, reference ~~or boxing~~ , boxing, or span conversion exists from expr to the type of the first parameter of Mₑ. 👉 Span conversion is not considered when overload resolution is performed for a method group conversion.

Speclet update: https://github.com/dotnet/csharplang/pull/8221 Test plan: https://github.com/dotnet/roslyn/issues/73445

jjonescz avatar Jun 18 '24 11:06 jjonescz