aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-07-29 11:29:20 +0100
committergingerBill <bill@gingerbill.org>2018-07-29 11:29:20 +0100
commit96fc9138d4e238512896a00d59d3f1dca76e5df1 (patch)
tree57a9969f4f9e61110ce051f097b8e4704f37d0b1 /src/checker.cpp
parent6512a3e5f24a3aecb1451f921455a93231412104 (diff)
Do `using Foo :: enum` at the `type_decl` stage
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 9f59788b8..6bd10fb3b 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -2123,7 +2123,7 @@ void check_collect_value_decl(CheckerContext *c, Ast *decl) {
if (vd->is_using) {
if (e->kind == Entity_TypeName && init->kind == Ast_EnumType) {
- init->EnumType.is_using = true;
+ d->is_using = true;
} else {
error(name, "'using' is not allowed on this constant value declaration");
}