mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-12 06:11:26 -07:00
Fix checking _ constant declarations with a procedure
This commit is contained in:
+3
-3
@@ -962,9 +962,9 @@ void add_type_and_value(CheckerInfo *i, Ast *expr, AddressingMode mode, Type *ty
|
||||
void add_entity_definition(CheckerInfo *i, Ast *identifier, Entity *entity) {
|
||||
GB_ASSERT(identifier != nullptr);
|
||||
GB_ASSERT(identifier->kind == Ast_Ident);
|
||||
if (is_blank_ident(identifier)) {
|
||||
return;
|
||||
}
|
||||
// if (is_blank_ident(identifier)) {
|
||||
// return;
|
||||
// }
|
||||
if (identifier->Ident.entity != nullptr) {
|
||||
// NOTE(bill): Identifier has already been handled
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user