mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-26 01:01:48 +00:00
Do using Foo :: enum at the type_decl stage
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user