mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-06 12:52:49 -04:00
Let -vet ignore intentional declaration shadowing #637
This commit is contained in:
1 parent
d49ecd9009
commit
fcdfcfce19
3 files changed
+27
-7
No files matched your search
@@ -40,6 +40,10 @@ Type *check_init_variable(CheckerContext *ctx, Entity *e, Operand *operand, Stri
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (e->kind == Entity_Variable) {
|
||||
e->Variable.init_expr = operand->expr;
|
||||
}
|
||||
|
||||
if (operand->mode == Addressing_Type) {
|
||||
if (e->type != nullptr && is_type_typeid(e->type)) {
|
||||
add_type_info_type(ctx, operand->type);
|
||||
|
||||
Reference in new issue
Block a user