diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-17 22:07:27 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-17 22:07:27 +0100 |
| commit | a4e3201113311b338c563d169cac59aaf9cf6335 (patch) | |
| tree | 22210259a11b9be9f3f62d682a1f94a0be18fb7e /src/check_type.cpp | |
| parent | a99cc2fd70d31b3a0b5a6881d4b5cb431f911354 (diff) | |
Minor cleanup for builtin scope/pkg
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 6058fb859..bbb67667e 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1642,7 +1642,7 @@ void init_map_entry_type(Type *type) { } */ Ast *dummy_node = alloc_ast_node(nullptr, Ast_Invalid); - Scope *s = create_scope(universal_scope, a); + Scope *s = create_scope(builtin_scope, a); auto fields = array_make<Entity *>(a, 0, 3); array_add(&fields, alloc_entity_field(s, make_token_ident(str_lit("key")), t_map_key, false, 0, EntityState_Resolved)); @@ -1677,7 +1677,7 @@ void init_map_internal_types(Type *type) { */ gbAllocator a = heap_allocator(); Ast *dummy_node = alloc_ast_node(nullptr, Ast_Invalid); - Scope *s = create_scope(universal_scope, a); + Scope *s = create_scope(builtin_scope, a); Type *hashes_type = alloc_type_dynamic_array(t_int); Type *entries_type = alloc_type_dynamic_array(type->Map.entry_type); |