Skip to content
Permalink
Browse files

Add support for "sub-signature" while creating a Parameter

  • Loading branch information...
lizmat committed Jan 13, 2019
1 parent ca177e5 commit 7be075eb591d73b667e413ad936389a3038afd2f
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/Parameter.pm6
@@ -230,6 +230,10 @@ my class Parameter { # declared in BOOTSTRAP
nqp::bind(@!post_constraints,nqp::list(%args.AT-KEY('where')));
}

if %args.EXISTS-KEY('sub-signature') {
$!sub_signature := %args.AT-KEY('sub-signature');
}

if $named {
$flags +|= $SIG_ELEM_IS_OPTIONAL unless $mandatory;
@!named_names := nqp::list_s($name.substr(1))

0 comments on commit 7be075e

Please sign in to comment.
You can’t perform that action at this time.