diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-18 15:14:13 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-18 15:14:13 +0000 |
| commit | 4c339360e94a66a9b081af4950266eaa3da0003c (patch) | |
| tree | 3e552da56621b7d8a75117a9bb64a94e0b0a29f6 /src/check_decl.cpp | |
| parent | 731dad480d705d3dd32a7ecb7bbb6c0d020e3a6b (diff) | |
auto_cast
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 1 |
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) { |