Skip to content
Permalink
Browse files

Add support for one argument rule to Parameter.new

  • Loading branch information...
lizmat committed Jan 12, 2019
1 parent d8b7fab commit 9485dd2bf84150b38ef3694cdda81488728d7c91
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/Parameter.pm6
@@ -136,6 +136,11 @@ my class Parameter { # declared in BOOTSTRAP
$sigil = $name.substr(0,1);
$named = True;
}
elsif $sigil eq Q/+/ {
$name = $name.substr(1);
$sigil = $name.substr(0,1);
$flags +|= $SIG_ELEM_IS_RAW +| $SIG_ELEM_SLURPY_ONEARG;
}

if $name.ends-with(Q/)/) {
if $named {

0 comments on commit 9485dd2

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