aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-02-18 15:14:13 +0000
committergingerBill <bill@gingerbill.org>2018-02-18 15:14:13 +0000
commit4c339360e94a66a9b081af4950266eaa3da0003c (patch)
tree3e552da56621b7d8a75117a9bb64a94e0b0a29f6 /src/check_decl.cpp
parent731dad480d705d3dd32a7ecb7bbb6c0d020e3a6b (diff)
auto_cast
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 7ac2cd7ac..c37e97906 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -243,6 +243,7 @@ void check_type_decl(Checker *c, Entity *e, AstNode *type_expr, Type *def) {
named->Named.base = base_type(bt);
if (!is_distinct) {
e->type = bt;
+ named->Named.base = bt;
e->TypeName.is_type_alias = true;
}
// if (is_alias) {