harec

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

commit 9489966ff8d2c0830fea168dc77e74f7782cc38f
parent 85af47577722edada7a86ec0e9485a47c15379e8
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Tue, 23 Feb 2021 23:16:56 -0500

Fix issues with member-imported alias types

Or, more generally, alias types which don't have a namespace and aren't
from the current namespace.

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

diff --git a/src/type_store.c b/src/type_store.c @@ -435,6 +435,10 @@ type_init_from_atype(struct type_store *store, obj = scope_lookup(store->check_context->scope, ident); if (!obj) { + obj = scope_lookup(store->check_context->scope, + &atype->alias); + } + if (!obj) { assert(!atype->unwrap); identifier_dup(&type->alias.ident, ident); type->alias.type = NULL;