mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Introduce "private" keyword and private modules / private import.
This commit is contained in:
committed by
Christoffer Lerno
parent
84fa680568
commit
0605a8c500
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user