Permalink
Browse files

Fixed a bug in `void_expr_error`.

  • Loading branch information...
matz committed Jun 2, 2017
1 parent b59d244 commit 0f2f021330bf3b00d504f3dce2c24c267f3eee72
Showing with 5 additions and 78 deletions.
  1. +5 −3 mrbgems/mruby-compiler/core/parse.y
  2. +0 −75 test/t/codegen.rb
@@ -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;
View

This file was deleted.

Oops, something went wrong.

0 comments on commit 0f2f021

Please sign in to comment.