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

update and consolidate errors related to iterators and yield #41632

Merged
merged 5 commits into from
Jul 9, 2024

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Jul 2, 2024

Fixes #41204

Add documentation for the new compiler errors and warnings and are produced for new features involving ref and unsafe blocks in iterators and async methods.

While doing these edits, combine existing and related compiler message articles.


Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-messages/iterator-yield.md Errors and warnings related to the yield return statement and iterator methods
docs/csharp/whats-new/csharp-13.md What's new in C# 13

@BillWagner BillWagner marked this pull request as ready for review July 3, 2024 19:40
@BillWagner BillWagner requested a review from a team as a code owner July 3, 2024 19:40
@BillWagner BillWagner requested a review from adegeo July 3, 2024 19:40
@BillWagner
Copy link
Member Author

ping @adegeo for review.

@BillWagner BillWagner enabled auto-merge (squash) July 9, 2024 17:55
Copy link
Contributor

@adegeo adegeo left a comment

Choose a reason for hiding this comment

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

LGTM!

@BillWagner BillWagner merged commit df92915 into dotnet:main Jul 9, 2024
8 checks passed
@BillWagner BillWagner deleted the update-ref-errors branch July 9, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C# 13]: New Feature - Allow ref and unsafe in iterators and async
3 participants