Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[t/spec] tests for RT #76116, parcel and capture binding in signature…

… introspection

git-svn-id: http://svn.pugscode.org/pugs@31491 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit e70afa03974527cb386a398de70a9ca2ef0f2fa5 1 parent 518481a
moritz authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 S06-signature/introspection.t
View
10 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(:$) {};
Please sign in to comment.
Something went wrong with that request. Please try again.