Skip to content

todo tests for GH 16364 (array element lazily created at wrong index) #23569

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

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from

Conversation

1-1sam
Copy link
Contributor

@1-1sam 1-1sam commented Aug 13, 2025

This PR adds some todo tests for #16364 that test the following behavior:

  • An array element that was previously uninitialized is created at the correct index when assigned from a subroutine's @_ alias which modifies the element's original array. The element is within the array.
  • The same as the above but the element is outside of the array's range.
  • An array element that was previously uninitialized is created at the correct index when assigned from a foreach loop's $_ alias which modifies the element's original array.

The first test seems to pass, the other two do not.


  • This set of changes does not require a perldelta entry.

This commit adds some todo tests for GH 16364 that test the following
behavior:
* An array element that was previously uninitialized is created at the
  correct index when assigned from a subroutine's @_ alias which
  modifies the element's original array. The element is within the
  array.
* The same as the above but the element is outside of the array's
  range.
* An array element that was previously uninitialized is created at the
  correct index when assigned from a foreach loop's $_ alias which
  modifies the element's original array.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant