mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-14 18:02:22 -07:00
map is internally backed by a pointer (i.e. a "reference type")
This commit is contained in:
+2
-1
@@ -1844,7 +1844,8 @@ void generate_map_internal_types(gbAllocator a, Type *type) {
|
||||
|
||||
type_set_offsets(a, generated_struct_type);
|
||||
type->Map.generated_struct_type = generated_struct_type;
|
||||
type->Map.lookup_result_type = make_optional_ok_type(a, value);
|
||||
type->Map.internal_type = make_type_pointer(a, generated_struct_type);
|
||||
type->Map.lookup_result_type = make_optional_ok_type(a, value);
|
||||
}
|
||||
|
||||
void check_map_type(Checker *c, Type *type, AstNode *node) {
|
||||
|
||||
Reference in New Issue
Block a user