mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-08 11:34:20 +00:00
Basic polymorphic named procedure parameters for procedures and records
This commit is contained in:
@@ -885,6 +885,7 @@ void destroy_checker(Checker *c) {
|
||||
|
||||
|
||||
Entity *entity_of_ident(Ast *identifier) {
|
||||
identifier = unparen_expr(identifier);
|
||||
if (identifier->kind == Ast_Ident) {
|
||||
return identifier->Ident.entity;
|
||||
}
|
||||
@@ -1042,6 +1043,8 @@ void add_type_and_value(CheckerInfo *i, Ast *expr, AddressingMode mode, Type *ty
|
||||
expr->tav.value = value;
|
||||
} else if (mode == Addressing_Value && is_type_typeid(type)) {
|
||||
expr->tav.value = value;
|
||||
} else if (mode == Addressing_Value && is_type_proc(type)) {
|
||||
expr->tav.value = value;
|
||||
}
|
||||
|
||||
prev_expr = expr;
|
||||
|
||||
Reference in New Issue
Block a user