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

Merged

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
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @BartoszKlonowski

I'll :shipit: now.

@BillWagner BillWagner enabled auto-merge (squash) July 29, 2025 20:43
@BillWagner BillWagner merged commit a8c6827 into dotnet:main Jul 29, 2025
12 checks passed
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
2 participants