diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-05 17:51:45 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-05 17:51:45 +0100 |
| commit | beaad719adf592868bbb878d2e263a8aa6238ec5 (patch) | |
| tree | 53135747120e80016c62d00ad8c492d6288bf547 /src/check_decl.cpp | |
| parent | 0d257c61cd28e1df7ea372e4f386483db2bf75d1 (diff) | |
Reallow `using` on enum declarations temporarily but with a warning.
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 7e9ed0a1e..a8f1f9aec 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -295,7 +295,7 @@ void check_type_decl(CheckerContext *ctx, Entity *e, Ast *init_expr, Type *def) // using decl if (decl->is_using) { warning(init_expr, "'using' an enum declaration is not allowed, prefer using implicit selector expressions e.g. '.A'"); - #if 0 + #if 1 // NOTE(bill): Must be an enum declaration if (te->kind == Ast_EnumType) { Scope *parent = e->scope; |