harec

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

commit 90dd45a07f75b84487a0c25d245f71108c6dbb64
parent a248d3a628160683b68cdd2494c60363902c355c
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 13 Feb 2021 11:58:19 -0500

check: don't use non-tuple type hint in tuples

Diffstat:
Msrc/check.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/check.c b/src/check.c @@ -1834,7 +1834,7 @@ check_expr_tuple(struct context *ctx, } } - if (hint) { + if (hint && type_dealias(hint)->storage == TYPE_STORAGE_TUPLE) { expr->result = hint; } else { expr->result = type_store_lookup_tuple(ctx->store, &result);