mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Generic inference (#2475)
* Change generic symbol resolution.
* Infer generic parameters lhs -> rhs: `List{int} x = list::NOHEAP`.
* Regression: Compiler segfault when assigning struct literal with too few members #2483
This commit is contained in:
committed by
GitHub
parent
8342ac80d3
commit
92aefb15f8
@@ -285,7 +285,7 @@ static void register_generic_decls(CompilationUnit *unit, Decl **decls)
|
||||
htable_set(&unit->module->symbols, (void *)decl->name, decl);
|
||||
if (decl->visibility == VISIBLE_PUBLIC)
|
||||
{
|
||||
global_context_add_generic_decl(decl);
|
||||
global_context_add_decl(decl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user