harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c02f1b8828829ed87ac27570243fa287d4526bf4
parent f19a71026da1ec3e52aa4c6d8ecad76748d194e3
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Fri,  9 Apr 2021 19:08:05 -0400

Provide a type hint to the last expr in a list

Diffstat:
Msrc/check.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/check.c b/src/check.c @@ -1592,8 +1592,8 @@ check_expr_list(struct context *ctx, const struct ast_expression_list *alist = &aexpr->list; while (alist) { struct expression *lexpr = xcalloc(1, sizeof(struct expression)); - errors = check_expression(ctx, alist->expr, lexpr, NULL, - errors); + errors = check_expression(ctx, alist->expr, lexpr, + alist->next ? NULL : hint, errors); list->expr = lexpr; alist = alist->next;