mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-19 12:22:23 -07:00
*_of as keyords; Allow constant aliasing for user/built-in procedures, import names, and library names
This commit is contained in:
@@ -5639,6 +5639,13 @@ void ir_build_constant_value_decl(irProcedure *proc, AstNodeValueDecl *vd) {
|
||||
GB_ASSERT(ident->kind == AstNode_Ident);
|
||||
Entity *e = entity_of_ident(proc->module->info, ident);
|
||||
GB_ASSERT(e != NULL);
|
||||
switch (e->kind) {
|
||||
case Entity_TypeName:
|
||||
case Entity_Procedure:
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
|
||||
bool polymorphic = is_type_polymorphic(e->type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user