fixed silly class variable/constant confusion; #3138

This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-03-22 00:06:32 +09:00
parent a02acf2635
commit 2b0baec32a
+1 -1
View File
@@ -708,7 +708,7 @@ static node*
new_op_asgn(parser_state *p, node *a, mrb_sym op, node *b)
{
if (op == mrb_intern_lit(p->mrb, "||") && (intptr_t)a->car == NODE_CVAR) {
return new_rescue(p, a, list1(list3(list1(new_cvar(p, mrb_intern_lit(p->mrb, "NameError"))),
return new_rescue(p, a, list1(list3(list1(new_const(p, mrb_intern_lit(p->mrb, "NameError"))),
0, new_asgn(p, a, b))), NULL);
}
else {