Skip to content

C# 13: [TEST ONLY] Test example with ref local, unsafe context and ref struct in async- and iterator methods. #18498

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
merged 1 commit into from
Jan 16, 2025

Conversation

michaelnebel
Copy link
Contributor

For C# 13 we are now allowed to use ref locals, ref structs and unsafe context in iterators and async methods as described here.
In this PR we just add some code examples to check that this compiles and doesn't fail during extraction.

@github-actions github-actions bot added the C# label Jan 15, 2025
@michaelnebel michaelnebel marked this pull request as ready for review January 15, 2025 14:23
@Copilot Copilot AI review requested due to automatic review settings January 15, 2025 14:23
@michaelnebel michaelnebel requested a review from a team as a code owner January 15, 2025 14:23
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 6 changed files in this pull request and generated no comments.

Files not reviewed (4)
  • csharp/ql/test/library-tests/async/Async.expected: Language not supported
  • csharp/ql/test/library-tests/async/Await.expected: Language not supported
  • csharp/ql/test/library-tests/iterators/iterators.expected: Language not supported
  • csharp/ql/test/library-tests/iterators/iterators.ql: Language not supported

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

@michaelnebel michaelnebel changed the title C#: [TEST ONLY] Test example with ref local, unsafe context and ref struct in async- and iterator methods. C# 13: [TEST ONLY] Test example with ref local, unsafe context and ref struct in async- and iterator methods. Jan 16, 2025
@michaelnebel michaelnebel merged commit 0452b4a into github:main Jan 16, 2025
15 checks passed
@michaelnebel michaelnebel deleted the csharp/refandunsafe branch January 16, 2025 10:42
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.

2 participants