Skip to content

Conversation

BartoszKlonowski
Copy link
Contributor

@BartoszKlonowski BartoszKlonowski commented Oct 7, 2025

This pull request fixes issues with the page of CS0163, such as:

  • Removes the misleading example of CS8070 claimed to be CS0163.
    This fixes Incorrect example for CS0163 compiler error #48944
  • Adds the missing closing bracket to the MyClass snippet
  • Replaces return with break statement for the case 3 so that both exiting statement mentioned as potential solutions are presented in the snippet as working correctly examples.

In this PR I also went ahead and decided to add a mention of a possibility to have several cases for one implementation.
This is done in the last commit - let me know if you find it a good idea.


Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-messages/cs0163.md Compiler Error CS0163

@BartoszKlonowski BartoszKlonowski requested review from a team and BillWagner as code owners October 7, 2025 23:05
@dotnetrepoman dotnetrepoman bot added this to the October 2025 milestone Oct 7, 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 @BartoszKlonowski

This LGTM, and I'll :shipit: now.

@BillWagner BillWagner enabled auto-merge (squash) October 8, 2025 12:54
@BillWagner BillWagner merged commit 5110fc7 into dotnet:main Oct 8, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect example for CS0163 compiler error

2 participants