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

Bugfix for Array.insertManyAt returns original array for empty inserion (#18352) #18353

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

muqiuhan
Copy link
Contributor

@muqiuhan muqiuhan commented Mar 3, 2025

Description

Use array.Clone() to fix the bug that Array.insertManyAt directly returning source array when the values inserted are empty.

Checklist

  • Test cases added
  • Performance benchmarks added in case of performance changes
  • Release notes entry updated

@muqiuhan muqiuhan requested a review from a team as a code owner March 3, 2025 08:43
Copy link
Contributor

github-actions bot commented Mar 3, 2025

❗ Release notes required

@muqiuhan,

Caution

No release notes found for the changed paths (see table below).

Please make sure to add an entry with an informative description of the change as well as link to this pull request, issue and language suggestion if applicable. Release notes for this repository are based on Keep A Changelog format.

The following format is recommended for this repository:

* <Informative description>. ([PR #XXXXX](https://github.com/dotnet/fsharp/pull/XXXXX))

See examples in the files, listed in the table below or in th full documentation at https://fsharp.github.io/fsharp-compiler-docs/release-notes/About.html.

If you believe that release notes are not necessary for this PR, please add NO_RELEASE_NOTES label to the pull request.

You can open this PR in browser to add release notes: open in github.dev

Change path Release notes path Description
src/FSharp.Core docs/release-notes/.FSharp.Core/9.0.300.md No release notes found or release notes format is not correct

@psfinaki
Copy link
Member

psfinaki commented Mar 3, 2025

Hi @muqiuhan - thanks for the contribution. Could you please add a test for the fix?

@muqiuhan
Copy link
Contributor Author

muqiuhan commented Mar 3, 2025 via email

@albert-du
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

Array.insertManyAt returns original array for empty insertion
3 participants