Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
want lhs of assignment and binding a little harder
  • Loading branch information
TimToady committed Dec 16, 2015
1 parent 99294ba commit 3a82a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Actions.nqp
Expand Up @@ -6193,7 +6193,7 @@ Compilation unit '$file' contained the following violations:

sub bind_op($/, $target, $source, $sigish) {
# Check we know how to bind to the thing on the LHS.
$target := wanted($target,'bind_op');
$target := WANTED($target,'bind_op');
if $target.isa(QAST::Var) {
# Check it's not a native type; we can't bind to those.
if nqp::objprimspec($target.returns) {
Expand Down Expand Up @@ -6293,7 +6293,7 @@ Compilation unit '$file' contained the following violations:
sub assign_op($/, $lhs_ast, $rhs_ast) {
my $past;
my $var_sigil;
$lhs_ast := wanted($lhs_ast,'assign_op/lhs');
$lhs_ast := WANTED($lhs_ast,'assign_op/lhs');
$rhs_ast := wanted($rhs_ast,'assign_op/rhs');
if nqp::istype($lhs_ast, QAST::Var) {
$var_sigil := nqp::substr($lhs_ast.name, 0, 1);
Expand Down

0 comments on commit 3a82a2e

Please sign in to comment.