Skip to content

Commit

Permalink
Needed to apply block from safe-navigation operators; fix #3310
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Dec 3, 2016
1 parent 6b84ff4 commit f6d1999
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mrbgems/mruby-compiler/core/parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ call_with_block(parser_state *p, node *a, node *b)
break;
case NODE_CALL:
case NODE_FCALL:
case NODE_SCALL:
n = a->cdr->cdr->cdr;
if (!n->car) n->car = cons(0, b);
else {
Expand Down

0 comments on commit f6d1999

Please sign in to comment.