Introduce "private" keyword and private modules / private import.

This commit is contained in:
Christoffer Lerno
2021-05-30 15:11:12 +02:00
committed by Christoffer Lerno
parent 84fa680568
commit 0605a8c500
16 changed files with 192 additions and 199 deletions

View File

@@ -1018,7 +1018,7 @@ static Context *copy_context(Module *module, Context *c)
static Module *sema_instantiate_module(Context *context, Module *module, Path *path, TypeInfo **parms)
{
Module *new_module = compiler_find_or_create_module(path, NULL);
Module *new_module = compiler_find_or_create_module(path, NULL, module->is_private);
new_module->is_generic = true;
Context **contexts = module->contexts;
VECEACH(contexts, i)