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
Marking an array as slurpy makes it unaccessible by name #1688
Comments
From @moritz17:23 <@moritz_> rakudo: proto sub a(*@val) { say @val.perl }; a(:val<a The only difference between these two lines the * in front of the @val |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/slurpy-params.t commit 57d87c05c9a9f78b3519ce5e246ea2b5a7420ffa [t/spec] test for RT #74344, call slurpy params by name Inline Patchdiff --git a/t/spec/S06-signature/slurpy-params.t b/t/spec/S06-signature/slurpy-params.t
index cbc77b9..4b8e748 100644
--- a/t/spec/S06-signature/slurpy-params.t
+++ b/t/spec/S06-signature/slurpy-params.t
@@ -295,6 +295,13 @@ eval_dies_ok 'sub rt65324(*@x, $oops) { say $oops }',
}
+# RT #74344
+#?rakudo skip 'RT 74344'
+{
+ sub slurpy-by-name(*@var) { @var.join('|') }
+ is slurpy-by-name(:var<a v g>), 'a|v|g', 'Can call slurpy param by name';
+}
+
done_testing;
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzCalling positionals by name is now deprecated, so closing. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#74344 (status was 'resolved')
Searchable as RT74344$
The text was updated successfully, but these errors were encountered: