mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-10 06:53:03 +00:00
Only check idents in the alias (of alias)+ problem
This commit is contained in:
@@ -3670,7 +3670,7 @@ bool correct_single_type_alias(CheckerContext *c, Entity *e) {
|
||||
DeclInfo *d = e->decl_info;
|
||||
if (d != nullptr && d->init_expr != nullptr) {
|
||||
Ast *init = d->init_expr;
|
||||
Entity *alias_of = check_entity_from_ident_or_selector(c, init);
|
||||
Entity *alias_of = check_entity_from_ident_or_selector(c, init, true);
|
||||
if (alias_of != nullptr && alias_of->kind == Entity_TypeName) {
|
||||
e->kind = Entity_TypeName;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user