Skip to content
Permalink
Browse files
fixed silly class variable/constant confusion; #3138
  • Loading branch information
matz committed Mar 21, 2016
1 parent a02acf2 commit 2b0baec32a6bfe72a18199cc864c43d07575b14b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 {

0 comments on commit 2b0baec

Please sign in to comment.