[perl #126312] [BUG] `for @a` is not creating containers for uninitialized elements
[email protected] ("Jan-Olof Hendig via RT")
| Newsgroups | perl.perl6.compiler |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 07 May 2016 13:26:09 -0700, [email protected] wrote: > Confirmed on current Rakudo. > > Interestingly, it works if `for @a` is replaced with `for @a[*]`: > > ➜ my Int @a; @a[5] = 42; $_ = 100 for @a[*]; say @a; > [100 100 100 100 100 100] Seems to have been fixed with Rakudo commit 069b789af545dff30d450618fae82ccb82579346. Tests needed.