Skip to content

Conversation

ericstj
Copy link
Member

@ericstj ericstj commented Feb 28, 2025

Trolling copilot

@ghost ghost 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
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.

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

@ericstj ericstj closed this Mar 10, 2025
@ericstj ericstj deleted the ericstj-collection-array-cs-test branch March 10, 2025 18:27
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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