Skip to content

Commit

Permalink
Fixed a bug in void_expr_error.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Jun 2, 2017
1 parent b59d244 commit 0f2f021
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 78 deletions.
8 changes: 5 additions & 3 deletions mrbgems/mruby-compiler/core/parse.y
Expand Up @@ -3474,10 +3474,12 @@ void_expr_error(parser_state *p, node *n)
void_expr_error(p, n->cdr->cdr);
break;
case NODE_BEGIN:
while (n->cdr) {
n = n->cdr;
if (n->cdr) {
while (n->cdr) {
n = n->cdr;
}
void_expr_error(p, n->car);
}
void_expr_error(p, n->car);
break;
default:
break;
Expand Down
75 changes: 0 additions & 75 deletions test/t/codegen.rb

This file was deleted.

0 comments on commit 0f2f021

Please sign in to comment.