Skip Menu |
Report information
Id: 73892
Status: resolved
Worked: 16,666.7 hours (1000000 min)
Priority: 0/
Queue: perl6

Owner: jnthn [at] jnthn.net
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

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



Subject: [BUG] Bogus error about placeholder variables when %_ is flattened inside a method in Rakudo
Date: Mon, 29 Mar 2010 18:25:42 +0200
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 197b
<m<masak> rakudo: class A { method f(*%_) { |%_ } }' <p6eval> rakudo 534afd: OUTPUT«Placeholder variables cannot be used in a method [...] <jnthn> That's certainly a bug * masak submits rakudobug
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 300b
On Mon Mar 29 09:26:52 2010, masak wrote: Show quoted text
> <m<masak> rakudo: class A { method f(*%_) { |%_ } }' > <p6eval> rakudo 534afd: OUTPUT«Placeholder variables cannot be used in > a method [...] > <jnthn> That's certainly a bug > * masak submits rakudobug
Now fixed; given to moritz++ for tests. Jonathan
Download (untitled) / with headers
text/plain 161b
Right now it only works with explicitly declared %_, the implicit one still throws the same error. Tests for both cases are now in t/spec/S12-methods/instance.t
Tests and expanded and labeled, closing ticket.


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