Skip to content

Commit

Permalink
Fix poor error with some slurpies with defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Oct 25, 2017
1 parent 97b11ed commit a92950f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -4982,7 +4982,8 @@ class Perl6::Actions is HLL::Actions does STDActions {
my $quant := $<quant>;
if $<default_value> {
my $name := %*PARAM_INFO<variable_name> // '';
if $quant eq '*' || $quant eq '|' {
if $quant eq '*' || $quant eq '|'
|| $quant eq '**' || $quant eq '+' {
$/.typed_sorry('X::Parameter::Default', how => 'slurpy',
parameter => $name);
}
Expand Down

0 comments on commit a92950f

Please sign in to comment.