Do using Foo :: enum at the type_decl stage

This commit is contained in:
gingerBill
2018-07-29 11:29:20 +01:00
parent 6512a3e5f2
commit 96fc9138d4
8 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -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");
}