summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 1e5696b97c..74d4d09039 100644
--- a/parse.y
+++ b/parse.y
@@ -4705,7 +4705,7 @@ attrset(recv, id)
ID id;
{
value_expr(recv);
- return NEW_CALL(recv, rb_id_attrset(id), 0);
+ return NEW_ATTRASGN(recv, rb_id_attrset(id), 0);
}
static void
@@ -4765,6 +4765,7 @@ node_assign(lhs, rhs)
lhs->nd_value = rhs;
break;
+ case NODE_ATTRASGN:
case NODE_CALL:
lhs->nd_args = arg_add(lhs->nd_args, rhs);
break;