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
if
block with slurpy parameter does not receive argument
#4667
Comments
From @lizmat[23:21:43] <lizmat> m: sub aa { for @_ { .say } }; aa 42 |
From @smlsStill reproducible. Simpler test-case, comparing `for` (which works as expected) to `if`: for 42 { say $^a }; # 42 if 42 { say $^a_ }; # 42 So it happens even without @_ from an outer routine interfering. Introspection reveals that the correct signature is created though: for 42 { say &?BLOCK.signature; @_ }; # (*@_) The `if` block just refuses to bind its argument to that signature, for some reason... |
The RT System itself - Status changed from 'new' to 'open' |
From @smlsHappens with an explicitly declared slurpy, too - regardless of its name: for 42 -> *@a { say @a }; [42] (This is Rakudo version 2016.04-210-gc59e4dc built on MoarVM version 2016.05 |
From @dogbert17On Fri, 20 May 2016 14:34:25 -0700, smls75@gmail.com wrote:
Fixed by Zoffix++: Fix: Raku/nqp@8e7201eb64 Test: Raku/roast@aa90737df1 |
@dogbert17 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126423 (status was 'resolved')
Searchable as RT126423$
The text was updated successfully, but these errors were encountered: