Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add errors and warnings related to overload resolution #42563

Merged
merged 9 commits into from
Sep 13, 2024

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Sep 10, 2024

Fixes #41936

Commit summary:

  1. Add new file and errors added for OverloadResolutionPriorityAttribute
  2. Consolidate other errors for overload resolution. Note that some were related to collection initializers, so are in that article instead.
  3. Edit pass
  4. Add errors for overload definitions and ambiguous calls
  5. Edit pass
  6. Fix related issues:

Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-messages/array-declaration-errors.md docs/csharp/language-reference/compiler-messages/array-declaration-errors
docs/csharp/language-reference/compiler-messages/overload-resolution.md docs/csharp/language-reference/compiler-messages/overload-resolution
docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error

Add the new compiler errors and warnings related to Overload Resolution Priority.
@BillWagner BillWagner marked this pull request as ready for review September 12, 2024 20:43
@BillWagner BillWagner requested a review from a team as a code owner September 12, 2024 20:43
@BillWagner BillWagner merged commit 07e4433 into dotnet:main Sep 13, 2024
8 checks passed
@BillWagner BillWagner deleted the orpa-overload-errors branch September 13, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[C# 13]: New Feature - Overload Resolution Priority Adding a new reason for error CS1007
3 participants