mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fixed silly class variable/constant confusion; #3138
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user