Skip to content

Update the CS1031 page #47527

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BartoszKlonowski
Copy link
Contributor

@BartoszKlonowski BartoszKlonowski commented Jul 22, 2025

This pull request closes #47132, by updating the page of CS1031.
The update includes:

  • removal of incorrect examples of non-cs1031 errors
  • update of the correct code - separated it between error and non-error samples
  • updated explanation text, mentioning:
    That this error is regarding overloaded operators - I couldn't reproduce this error with any other "type missing" scenario, often led it to syntax errors or other, non-relevant ones.
    That this error shouldn't be confused between type and type parameters, with linking to generic type parameters, for better understanding of the difference.

Internal previews

📄 File 🔗 Preview link
docs/csharp/misc/cs1031.md Compiler Error CS1031

@BartoszKlonowski BartoszKlonowski requested review from BillWagner and a team as code owners July 22, 2025 21:26
@dotnetrepoman dotnetrepoman bot added this to the July 2025 milestone Jul 22, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc csharp-errors-warnings/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates PR is created by someone from the .NET community. csharp-errors-warnings/subsvc dotnet-csharp/svc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The examples are outdated
1 participant