build: close package variant identity gaps
This commit is contained in:
@@ -3060,7 +3060,9 @@ lookup_visible_type(Checker *c, const char *name)
|
||||
for (Scope *p = c->cur; p; p = p->parent) {
|
||||
for (Sym *b = p->first; b; b = b->next)
|
||||
if (b->kind == SK_TYPE && strcmp(b->name, name) == 0
|
||||
&& direct_module_visible(c, b->mod))
|
||||
&& direct_module_visible(c, b->mod)
|
||||
&& (b->decl == NULL || !b->decl->imported
|
||||
|| b->decl->export))
|
||||
return b;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user