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
Patch by FROGGS++
  • Loading branch information
niner committed Sep 19, 2015
1 parent de907e5 commit 86536d2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Perl6/Actions.nqp
Expand Up @@ -5253,7 +5253,7 @@ Compilation unit '$file' contained the following violations:
hunt_loose_adverbs_in_arglist($EXPR, @args);
}
for @args {
$_[2].named('value');
$_[2] := QAST::Want.new(|$_[2].list);
}
}
}
Expand All @@ -5268,8 +5268,14 @@ Compilation unit '$file' contained the following violations:
&& nqp::istype($past[0][0], QAST::Var) && $past[0][0].name eq 'Pair' {
$past := QAST::Stmts.new( :node($/),
QAST::Op.new( :op('call'), :name('&infix:<,>'),
$past[0], |@args)
)
QAST::Op.new(
:op('callmethod'), :name('new'), :returns($*W.find_symbol(['Pair'])),
QAST::Var.new( :name('Pair'), :scope('lexical') ),
$past[0][1], $past[0][2]
),
|@args
)
);
}
else {
for @args {
Expand Down

0 comments on commit 86536d2

Please sign in to comment.