[perl #126423] [BUG] `if` block with slurpy parameter does not receive argument
[email protected] ("Jan-Olof Hendig via RT")
| Newsgroups | perl.perl6.compiler |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 20 May 2016 14:34:25 -0700, [email protected] wrote: > Happens with an explicitly declared slurpy, too - regardless of its name: > > for 42 -> *@a { say @a }; [42] > if 42 -> *@a { say @a }; [] > > --- > (This is Rakudo version 2016.04-210-gc59e4dc built on MoarVM version 2016.05 > implementing Perl 6.c.) Fixed by Zoffix++: Fix: https://github.com/perl6/nqp/commit/8e7201eb64 https://github.com/rakudo/rakudo/commit/dfb6d951d7 https://github.com/rakudo/rakudo/commit/ef1d22f4c1 Test: https://github.com/perl6/roast/commit/aa90737df1