Skip Menu |
Report information
Id: 132050
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: nlogan [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: rakudobug [...] perl.org
From: Nick Logan <nlogan [...] gmail.com>
Subject: [BUG] Strange behavior with FIRST + while block + required parameter
Date: Sat, 9 Sep 2017 18:22:47 -0400
Download (untitled) / with headers
text/plain 525b
while $(1,2) -> @_ { FIRST { say 42 }; say @_; last if ++$ } # Too few positionals passed; expected 1 argument but got 0 while $(1,2) -> @_ { LAST { say 42 }; say @_; last if ++$ } # (1 2) # 42 while $(1,2) -> $_ { FIRST { say 42 }; say $_; last if ++$ } # Too few positionals passed; expected 1 argument but got 0 while $(1,2) -> *@_ { FIRST { say 42 }; say @_; last if ++$ } # 42 # [] while $(1,2) -> $_? { FIRST { say 42 }; say $_; last if ++$ } # 42 # (Mu) https://irclog.perlgeek.de/perl6-dev/2017-09-09#i_15140996


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org