Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix {:a(1) :b(2)} dieing due to missing value arg to Pair.new
  • Loading branch information
niner committed Sep 19, 2015
1 parent 86536d2 commit 5256ed6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Perl6/Actions.nqp
Expand Up @@ -5408,8 +5408,14 @@ Compilation unit '$file' contained the following violations:
hunt_loose_adverbs_in_arglist($EXPR, @args);
}
for @args {
$_[2].named('value');
$past.push($_);
$_[2] := QAST::Want.new(|$_[2].list);
$past.push(
QAST::Op.new(
:op('callmethod'), :name('new'), :returns($*W.find_symbol(['Pair'])),
QAST::Var.new( :name('Pair'), :scope('lexical') ),
$_[1], $_[2]
)
);
}
}
}
Expand Down

0 comments on commit 5256ed6

Please sign in to comment.