diff options
| author | gingerBill <bill@gingerbill.org> | 2022-02-04 22:45:13 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-02-04 22:45:13 +0000 |
| commit | d5384c5aa4d823fbd527fb82e9eb5559b4266dfd (patch) | |
| tree | 8886c71e94e1ceebef74b88aa7a4b3fa3f1ec601 /src/checker.cpp | |
| parent | 3a81f2ab898d537bba51b9ea81e047652112574e (diff) | |
Only check idents in the alias (of alias)+ problem
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index c90f357dd..188d68502 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -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; |