Skip to content
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

Can't bind parameters in nested signatures from a Pair object in Rakudo #2473

Closed
p6rt opened this issue Sep 14, 2011 · 3 comments
Closed

Can't bind parameters in nested signatures from a Pair object in Rakudo #2473

p6rt opened this issue Sep 14, 2011 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Sep 14, 2011

Migrated from rt.perl.org#99134 (status was 'resolved')

Searchable as RT99134$

@p6rt
Copy link
Author

p6rt commented Sep 14, 2011

From @masak

<masak> rakudo​: my @​a = a => 1, b => 2; for @​a -> Pair $p ( $key,
$value ) { say $key }
<p6eval> rakudo 6c9731​: OUTPUT«Not enough positional parameters
passed; got 0 but expected 2 in sub-signature of parameter $p [...]
<jnthn> rakudo​: my @​a = a => 1, b => 2; for @​a -> Pair $p ( :$key,
:$value) { say $key }
<p6eval> rakudo 6c9731​: OUTPUT«Mu()␤Mu()␤»
<jnthn> hmm
<jnthn> rakudo​: (a => 1).^attributes>>.has_accessor>>.say
<p6eval> rakudo 6c9731​: OUTPUT«Bool​::False␤Bool​::False␤»
<jnthn> ah.
<jnthn> masak​: Are you going to masakbug the above?
<jnthn> masak​: I'm compiling a patch now but it deserves a test.
<jnthn> masak​: And getting you to submit a bug report is the laziest
way I can make sure it gets tested :P
* masak submits rakudobug, on request
<masak> jnthn​: I'm sorry, I woulda done it sooner. I was sure that one
had an RT ticket already.
<masak> I mean, how could it not? it's been known for ages.
<masak> seems there isn't one, so here goes.

@p6rt
Copy link
Author

p6rt commented Sep 26, 2011

From @moritz

Works now, and tested in the new S06-signature/unpack-object.t file.

@p6rt
Copy link
Author

p6rt commented Sep 26, 2011

@moritz - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant