-
Notifications
You must be signed in to change notification settings - Fork 6k
Add documentation for compiler error CS9036 #46258
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
You'll find the error codes and the error messages in the roslyn repository. The new article should go in this folder in the docs repository. |
You need to add this article to the toc and update the |
Add a trailing newline so markdown lint doesn't fail. |
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
I've moved the error documentation to the compiler-messages folder as requested. The file is now located in the proper location within the documentation structure.
I've added the CS9036 entry to the TOC in the compiler messages section and updated the ms.date value to today's date (05/19/2023). The changes are in commit bb59f4a. |
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Added trailing newline to the CS9036 documentation file in commit 8bd831e. |
Remove the version in the |
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
I've removed the duplicate file from the misc folder and updated the ms.date to 05/19/2025. The changes are in commit b7c7151. |
Two more changes, and this is ready:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
markdown lint
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
I've fixed the markdown linting issues by removing trailing whitespace from the file in commit 443f2a8. The file now passes markdownlint checks. |
one more magic OPS build request. Closing and reopening. |
This PR adds documentation for the compiler error CS9036, which occurs when attempting to use a nested member or collection initializer syntax with a
required
member.The error happens in scenarios like this:
The documentation includes:
Fixes #46104.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.