Skip to content

Commit

Permalink
Fix whatever currying of prefix and postfix ops.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 14, 2012
1 parent e08c1dd commit dda694c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/QPerl6/Actions.pm
Expand Up @@ -5060,7 +5060,10 @@ class QPerl6::Actions is HLL::Actions {
my $Whatever := $*W.find_symbol(['Whatever']);
my $WhateverCode := $*W.find_symbol(['WhateverCode']);
my $curried := $past.isa(QAST::Op)
&& ($past.op ne 'call' || nqp::index($past.name, '&infix:') == 0)
&& ($past.op ne 'call' ||
(nqp::index($past.name, '&infix:') == 0 ||
nqp::index($past.name, '&prefix:') == 0 ||
nqp::index($past.name, '&postfix:') == 0))
&& (%curried{$past.name} // 2);
my $i := 0;
my $whatevers := 0;
Expand Down

0 comments on commit dda694c

Please sign in to comment.