commit 8ec41efd31e3affdee34fd6c25a7403b80eeaef3
parent 32b494e17e4253cb6a9d0186a36adb360ebc7140
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 11 Jan 2021 14:02:08 -0500
check: allow type hint to recursively apply
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/check.c b/src/check.c
@@ -400,6 +400,7 @@ check_expr_array(struct context *ctx,
ctx->type_hint->storage == TYPE_STORAGE_ARRAY ||
ctx->type_hint->storage == TYPE_STORAGE_SLICE)) {
type = ctx->type_hint->array.members;
+ ctx->type_hint = ctx->type_hint->array.members;
}
while (item) {