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

Use collection expressions in array.cs #113028

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ericstj
Copy link
Member

@ericstj ericstj commented Feb 28, 2025

Trolling copilot

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Feb 28, 2025
@ericstj ericstj requested a review from Copilot February 28, 2025 23:56

Choose a reason for hiding this comment

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

PR Overview

This PR refactors array initializations in arrays.cs to use collection expressions instead of explicit array constructors.

  • Replaces instances of "new int [] { ... }" with modern collection expressions.
  • Applies the syntax update in both multidimensional array tests and jagged array initializations.

Reviewed Changes

File Description
src/mono/mono/mini/arrays.cs Updated array initializations to utilize collection expressions.

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

@stephentoub
Copy link
Member

Replaces instances of "new int [] { ... }" with modern collection expressions.

Ooooh, did it learn?!

@ericstj
Copy link
Member Author

ericstj commented Mar 3, 2025

We added a repository code rule with @timheuer's help
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants