Skip to content

Commit

Permalink
fixed silly class variable/constant confusion; #3138
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Mar 21, 2016
1 parent a02acf2 commit 2b0baec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrbgems/mruby-compiler/core/parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2b0baec

Please sign in to comment.