mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-15 10:22:23 -07:00
Use a package local mutex for add_type_and_value
This commit is contained in:
+1
-1
@@ -3045,7 +3045,7 @@ gb_internal Type *check_type_expr(CheckerContext *ctx, Ast *e, Type *named_type)
|
||||
#endif
|
||||
|
||||
if (is_type_typed(type)) {
|
||||
add_type_and_value(ctx->info, e, Addressing_Type, type, empty_exact_value);
|
||||
add_type_and_value(ctx, e, Addressing_Type, type, empty_exact_value);
|
||||
} else {
|
||||
gbString name = type_to_string(type);
|
||||
error(e, "Invalid type definition of %s", name);
|
||||
|
||||
Reference in New Issue
Block a user