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
Typing of slurpy arrays is self-contradictory in Rakudo #1324
Comments
From @masak<masak> rakudo: sub foo(Int *@a) {}; my Int @b; foo(|@b) Rakudo should not expect Int, but Positional[Int] or some such. |
From @moritzOn Sun Sep 27 13:27:17 2009, masak wrote:
This works now, just needs tests. |
The RT System itself - Status changed from 'new' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/slurpy-params.t commit 59cfc9aaa0b9a58c39223568f675ddc0cec2f752 [t/spec] test for RT #69424, typed slurpy params should accept typed arrays Inline Patchdiff --git a/t/spec/S06-signature/slurpy-params.t b/t/spec/S06-signature/slurpy-params.t
index cd79949..a002000 100644
--- a/t/spec/S06-signature/slurpy-params.t
+++ b/t/spec/S06-signature/slurpy-params.t
@@ -288,6 +288,14 @@ These tests are the testing for "List parameters" section of Synopsis 06
eval_dies_ok 'sub rt65324(*@x, $oops) { say $oops }',
"Can't put required parameter after variadic parameters";
+# used to be RT #69424
+{
+ sub typed-slurpy(Int *@a) { 5 }
+ my Int @b;
+ is typed-slurpy(@b), 5, 'can fill typed slurpy with typed array';
+}
+
+
done_testing;
# vim: ft=perl6 |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#69424 (status was 'resolved')
Searchable as RT69424$
The text was updated successfully, but these errors were encountered: