Guest User

Untitled

a guest
Jul 16th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. diff --git a/src/Perl6/Actions.pm b/src/Perl6/Actions.pm
  2. index 9e44a7b..fc6e9c1 100644
  3. --- a/src/Perl6/Actions.pm
  4. +++ b/src/Perl6/Actions.pm
  5. @@ -3541,7 +3541,8 @@ INIT {
  6. %not_curried{'WHERE'} := 2;
  7. }
  8. sub whatever_curry($/, $past, $upto_arity) {
  9. - if $past.isa(PAST::Op) && %not_curried{$past.name} != 2 && $past<pasttype> ne 'call' {
  10. + if $past.isa(PAST::Op) && %not_curried{$past.name} != 2
  11. + && ($past<pasttype> ne 'call' || pir::index($past.name, '&infix:') == 0) {
  12. if ($upto_arity >= 1 && (($past[0].returns eq 'Whatever' && !%not_curried{$past.name})
  13. || $past[0].returns eq 'WhateverCode'))
  14. || ($upto_arity == 2 && (($past[1].returns eq 'Whatever' && !%not_curried{$past.name})
Add Comment
Please, Sign In to add comment