Skip to content

Commit

Permalink
Add support for "sub-signature" while creating a Parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 13, 2019
1 parent ca177e5 commit 7be075e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Parameter.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7be075e

Please sign in to comment.