mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix issue #123
This commit is contained in:
+2
-1
@@ -1475,7 +1475,8 @@ Type *check_get_params(Checker *c, Scope *scope, AstNode *_params, bool *is_vari
|
|||||||
param = make_entity_type_name(c->allocator, scope, name->Ident.token, type);
|
param = make_entity_type_name(c->allocator, scope, name->Ident.token, type);
|
||||||
param->TypeName.is_type_alias = true;
|
param->TypeName.is_type_alias = true;
|
||||||
} else {
|
} else {
|
||||||
if (operands != nullptr && is_type_polymorphic_type) {
|
if (operands != nullptr && is_type_polymorphic_type &&
|
||||||
|
operands->count > variables.count) {
|
||||||
Operand op = (*operands)[variables.count];
|
Operand op = (*operands)[variables.count];
|
||||||
type = determine_type_from_polymorphic(c, type, op);
|
type = determine_type_from_polymorphic(c, type, op);
|
||||||
if (type == t_invalid) {
|
if (type == t_invalid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user