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
The combination of prefix:<+> and slurpy arrays doesn't work in Rakudo #1693
Comments
From @masak<masak> rakudo: -> *@a { @a[+0] }.() |
From @bbkr$ perl6 -e '-> *@a { @a[+0] }.()' (compiles without error) # using sample data: |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkrtaken for tests [14:32] <moritz_> bbkr: S06-signature/slurpy-params.t probably |
From @bbkrtests added in t/spec/S06-signature/slurpy-params.t |
@bbkr - Status changed from 'open' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/slurpy-params.t commit c5d5e34edb598ce84b0858855707ca20fbeabf94 [t/spec] tests for RT #74410 The combination of prefix:<+> and slurpy arrays doesnt work Inline Patchdiff --git a/t/spec/S06-signature/slurpy-params.t b/t/spec/S06-signature/slurpy-params.t
index 5c4d542..ddd4139 100644
--- a/t/spec/S06-signature/slurpy-params.t
+++ b/t/spec/S06-signature/slurpy-params.t
@@ -323,6 +323,12 @@ eval_dies_ok 'sub rt65324(*@x, $oops) { say $oops }',
A(5, 4);
}
+# RT #74410
+{
+ is -> *@a { @a[+0] }.([5]), 5,
+ 'slurpy array can be indexed if index contains prefix:<+>';
+}
+
done_testing;
# vim: ft=perl6 |
Migrated from rt.perl.org#74410 (status was 'resolved')
Searchable as RT74410$
The text was updated successfully, but these errors were encountered: