#alias type declarations; core library additions; _global import name for the global scope

This commit is contained in:
gingerBill
2017-10-29 11:35:21 +00:00
parent 0ed34af19d
commit a43b89f36e
18 changed files with 367 additions and 49 deletions
+12
View File
@@ -1716,7 +1716,19 @@ void init_preload(Checker *c) {
t_map_header = e->type;
}
{
String _global = str_lit("_global");
Entity *e = make_entity_import_name(c->allocator, c->global_scope->parent, make_token_ident(_global), t_invalid,
str_lit(""), _global,
c->global_scope);
add_entity(c, c->global_scope, nullptr, e);
}
c->done_preload = true;
}