Commit 7d41835d authored by Carson McDonald's avatar Carson McDonald

Fix return block argument error

parent d780c668
...@@ -857,6 +857,7 @@ ret_args(parser_state *p, node *n) ...@@ -857,6 +857,7 @@ ret_args(parser_state *p, node *n)
{ {
if (n->cdr) { if (n->cdr) {
yyerror(p, "block argument should not be given"); yyerror(p, "block argument should not be given");
return NULL;
} }
if (!n->car->cdr) return n->car->car; if (!n->car->cdr) return n->car->car;
return new_array(p, n->car); return new_array(p, n->car);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment