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
Rakudo allows required parameters after variadic parameters, STD doesn't #966
Comments
From @masak<masak> rakudo: sub foo(*@data, $bar) { say $bar }; my @data = 1,2,3; |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/slurpy-params.t commit 1c854b7ffee2a159454af74d7adbf95de4dd7170 [t/spec] Test for RT #65324 Inline Patchdiff --git a/t/spec/S06-signature/slurpy-params.t b/t/spec/S06-signature/slurpy-params.t
index aaed845..b6f07b9 100644
--- a/t/spec/S06-signature/slurpy-params.t
+++ b/t/spec/S06-signature/slurpy-params.t
@@ -3,7 +3,7 @@ use Test;
# L<S06/List parameters/Slurpy parameters>
-plan 60;
+plan *;
sub xelems(*@args) { @args.elems }
sub xjoin(*@args) { @args.join('|') }
@@ -289,4 +289,10 @@ These tests are the testing for "List parameters" section of Synopsis 06
is $count, 1, 'Any slurpy param doesnt autothread';
}
+#?rakudo todo 'RT 65324'
+eval_dies_ok 'sub rt65324(*@x, $oops) { say $oops }',
+ "Can't put required parameter after variadic parameters";
+
+done_testing;
+
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Sat May 02 07:58:26 2009, masak wrote:
jnthn fixes! jnthn unfudges tests!
Speculation fail. ;-) Jonathan |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#65324 (status was 'resolved')
Searchable as RT65324$
The text was updated successfully, but these errors were encountered: