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

C# 13: [TEST ONLY] Implicit index usage in initializers. #18562

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Jan 22, 2025

It turns out that using implicit index (index from the end) for object initializers works out of the box.
The feature is described here.
In this PR we add some QL tests (including data flow) for usages of implicit index access.

@github-actions github-actions bot added the C# label Jan 22, 2025
@michaelnebel michaelnebel changed the title C#: Add test for implicit index usage. C# 13: Implicit index usage in initializers. Jan 23, 2025
@michaelnebel michaelnebel changed the title C# 13: Implicit index usage in initializers. C# 13: [TEST ONLY] Implicit index usage in initializers. Jan 23, 2025
@michaelnebel michaelnebel marked this pull request as ready for review January 23, 2025 10:27
@Copilot Copilot bot review requested due to automatic review settings January 23, 2025 10:27
@michaelnebel michaelnebel requested a review from a team as a code owner January 23, 2025 10:27

Choose a reason for hiding this comment

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

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

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

@michaelnebel michaelnebel merged commit dcdc12f into github:main Jan 23, 2025
15 checks passed
@michaelnebel michaelnebel deleted the csharp/implicitindex branch January 23, 2025 13:31
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