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
Renaming named parameters of the form :f($foo) are not accurately represented in the .signature in Rakudo #1336
Comments
From @masak<masak> rakudo: sub foo( :f($foo) ) {}; say &foo.signature.perl |
From @jnthnOn Thu Oct 01 03:43:28 2009, masak wrote:
Fixed in git 174e0d6, during re-write of Signature.perl into the Thanks, Jonathan |
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/named-parameters.t commit 7db1d626f5020c43f254f46ad09df9f62ad16eef [t/spec] Test for RT #69516 Inline Patchdiff --git a/t/spec/S06-signature/named-parameters.t b/t/spec/S06-signature/named-parameters.t
index 56934c9..f10dce5 100644
--- a/t/spec/S06-signature/named-parameters.t
+++ b/t/spec/S06-signature/named-parameters.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 77;
+plan 78;
# L<S06/Required parameters/"Passing a named argument that cannot be bound to
# a normal subroutine is also a fatal error.">
@@ -227,4 +227,11 @@ eval_dies_ok 'sub rt68086( $a, $a ) { }', 'two sub params with the same name';
'.signature.perl with required parameter includes requirement' );
}
+# RT #69516
+{
+ sub rt69516( :f($foo) ) { "You passed '$foo' as 'f'" }
+ ok( &rt69516.signature.perl ~~ m/ ':f(' \s* '$foo' \s* ')' /,
+ 'parameter rename appears in .signature.perl' );
+}
+
# vim: ft=perl6 |
From @kylehaThe new test for this passes, so I'm marking this resolved. |
@kyleha - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#69516 (status was 'resolved')
Searchable as RT69516$
The text was updated successfully, but these errors were encountered: