mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Generic methods were incorrectly registered as functions, leading to naming collisions. #1402
This commit is contained in:
@@ -230,7 +230,10 @@ static void register_generic_decls(CompilationUnit *unit, Decl **decls)
|
||||
break;
|
||||
}
|
||||
htable_set(&unit->module->symbols, (void *)decl->name, decl);
|
||||
if (decl->visibility == VISIBLE_PUBLIC) global_context_add_generic_decl(decl);
|
||||
if (decl->visibility == VISIBLE_PUBLIC && decl->decl_kind != DECL_MACRO)
|
||||
{
|
||||
global_context_add_generic_decl(decl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user