parse.y: check car part of return node.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-10-16 10:33:30 +09:00
parent 0b095406bf
commit 0dc5fcec7b
2 changed files with 994 additions and 992 deletions
+1
View File
@@ -1274,6 +1274,7 @@ ret_args(parser_state *p, node *n)
yyerror(p, "block argument should not be given");
return NULL;
}
if (!n->car) return NULL;
if (!n->car->cdr) return n->car->car;
return new_array(p, n->car);
}
File diff suppressed because it is too large Load Diff