aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-04 22:40:15 +0000
committergingerBill <bill@gingerbill.org>2022-02-04 22:40:15 +0000
commit3a81f2ab898d537bba51b9ea81e047652112574e (patch)
tree28d6f4c235c55b6a2f22ba5642a0e88dba3e9c55 /src/check_decl.cpp
parentabb26e0bead7f33f3335325b0674a9995fdbcd36 (diff)
Correct the type aliasing problem, caused by aliases (of aliases)+
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 193c28aea..2454feb33 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -387,6 +387,7 @@ void check_const_decl(CheckerContext *ctx, Entity *e, Ast *type_expr, Ast *init,
if (init != nullptr) {
Entity *entity = check_entity_from_ident_or_selector(ctx, init);
if (entity != nullptr && entity->kind == Entity_TypeName) {
+ // @TypeAliasingProblem
// NOTE(bill, 2022-02-03): This is used to solve the problem caused by type aliases
// being "confused" as constants
//