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
Signature.perl should know about |-prefixes #1879
Comments
From @moritz17:26 <@moritz_> rakudo: sub f(|$c) { }; say &f.signature.perl |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-signature/introspection.t commit 623767c555b872abb1f56c29af06f62b01b24bd6 [t/spec] tests for RT #76116, parcel and capture binding in signature introspection Inline Patchdiff --git a/t/spec/S06-signature/introspection.t b/t/spec/S06-signature/introspection.t
index bb2adf3..e7ff742 100644
--- a/t/spec/S06-signature/introspection.t
+++ b/t/spec/S06-signature/introspection.t
@@ -109,6 +109,16 @@ sub j(*@i) {
}
+{
+ my $x;
+ ok :(|$x).params[0].capture, 'prefix | makes .capture true';
+ ok :(|$x).perl ~~ / '|' /, 'prefix | appears in .perl output';
+
+ #?rakudo 2 skip 'parcel binding'
+ ok :(\|$x).params[0].parcel, 'prefix \| makes .parcel true';
+ ok :(\|$x).perl ~~ / '\|' /, 'prefix \| appears in .perl output';
+}
+
# RT #69492
{
sub foo(:$) {}; |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzImplemented, tests pass, everybody is happy! |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76116 (status was 'resolved')
Searchable as RT76116$
The text was updated successfully, but these errors were encountered: