[perl #126312] [BUG] `for @a` is not creating containers for uninitialized elements <[email protected]>
[email protected] ("Aleks-Daniel Jakimenko-Aleksejev via RT") Sat, 07 Apr 2018 08:10:47 -0700
| Newsgroups | perl.perl6.compiler |
|---|---|
| Message-ID | <[email protected]> |
Tests added in https://github.com/perl6/roast/commit/d78f33966cf6a6ec6bc060d98dfc521ad59b6f75 Closing On 2018-02-06 14:12:56, [email protected] wrote: > 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.