Skip to content

[Proposal]: Better Conversion from Collection Expression (VS 17.12, .NET 9) #8374

@333fred

Description

@333fred

Better conversion from collection expression

Summary

Updates to the better conversion rules to be more consistent with params, and better handle current ambiguity scenarios. For example, ReadOnlySpan<string> vs ReadOnlySpan<object> can currently cause ambiguities during overload resolution for [""]. This is an issue because .NET 9 is adding such methods to string.Concat, which we need to address in the language.

Design meetings

Metadata

Metadata

Labels

Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposal champion

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions