dotnet / dotnet/winforms

Collection expression overload ambiguity

Open
#10,946 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

This issue is to track any instances we come across where [collection expressions](https://learn.microsoft.com/dotnet/csharp/language-reference/operators/collection-expressions) leave users with ambiguous overloads.

This is particularly problematic when tools push users to convert things like `ToArray()` to collection expressions and it breaks the code.

There is a feature that should hopefully allow us to address existing code where this is a problem: https://github.com/dotnet/csharplang/issues/7706

Known issues:

1. #10924
2. #10945

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.