mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-05 12:37:51 +00:00
Fix Implicit Selector Expressions do not work at the global/package scope #484
This commit is contained in:
@@ -902,7 +902,7 @@ void check_global_variable_decl(CheckerContext *ctx, Entity *e, Ast *type_expr,
|
||||
}
|
||||
|
||||
Operand o = {};
|
||||
check_expr(ctx, &o, init_expr);
|
||||
check_expr_with_type_hint(ctx, &o, init_expr, e->type);
|
||||
check_init_variable(ctx, e, &o, str_lit("variable declaration"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user