mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Add check for a procedure
This commit is contained in:
+4
-1
@@ -537,7 +537,10 @@ gb_internal Type *check_record_polymorphic_params(CheckerContext *ctx, Ast *poly
|
|||||||
e->TypeName.is_type_alias = true;
|
e->TypeName.is_type_alias = true;
|
||||||
e->flags |= EntityFlag_PolyConst;
|
e->flags |= EntityFlag_PolyConst;
|
||||||
} else {
|
} else {
|
||||||
Type *t = determine_type_from_polymorphic(ctx, type, operand);
|
Type *t = operand.type;
|
||||||
|
if (is_type_proc(type)) {
|
||||||
|
t = determine_type_from_polymorphic(ctx, type, operand);
|
||||||
|
}
|
||||||
if (is_type_polymorphic(base_type(t))) {
|
if (is_type_polymorphic(base_type(t))) {
|
||||||
*is_polymorphic_ = true;
|
*is_polymorphic_ = true;
|
||||||
can_check_fields = false;
|
can_check_fields = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user