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/check_decl.cpp | |
| parent | 3a81f2ab898d537bba51b9ea81e047652112574e (diff) | |
Only check idents in the alias (of alias)+ problem
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 2454feb33..63fc777c0 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -385,7 +385,7 @@ void check_const_decl(CheckerContext *ctx, Entity *e, Ast *type_expr, Ast *init, Operand operand = {}; if (init != nullptr) { - Entity *entity = check_entity_from_ident_or_selector(ctx, init); + Entity *entity = check_entity_from_ident_or_selector(ctx, init, false); if (entity != nullptr && entity->kind == Entity_TypeName) { // @TypeAliasingProblem // NOTE(bill, 2022-02-03): This is used to solve the problem caused by type aliases |