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
"@list is copy" leads to dependent default parameters not updating #3422
Comments
From pjablons@conncoll.edu10:37 ren1us m: sub a(@list is copy, $l = @list.elems) { say "Elems: " ~ @list.elems; say "l: $l"; }; a(<a b c d e f g>); a(<a b c>); |
From @usev6This works now as expected (on 'nom' and 'glr'): $ perl6-m -e 'sub a(@list is copy, $l = @list.elems) { say "Elems: " ~ @list.elems; say "l: $l"; }; a(<a b c d e f g>); a(<a b c>)' I added a test to S06-traits/is-copy.t with commit Raku/roast@4747cd49fc I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6This works now as expected (on 'nom' and 'glr'): $ perl6-m -e 'sub a(@list is copy, $l = @list.elems) { say "Elems: " ~ @list.elems; say "l: $l"; }; a(<a b c d e f g>); a(<a b c>)' I added a test to S06-traits/is-copy.t with commit Raku/roast@4747cd49fc I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#122220 (status was 'resolved')
Searchable as RT122220$
The text was updated successfully, but these errors were encountered: