This commit is contained in:
Felipe Pena 2025-08-15 09:02:49 -03:00
parent f8737e5138
commit 5e2be445e1

View file

@ -342,8 +342,8 @@ pub fn (mut t TypeResolver) resolve_args(cur_fn &ast.FnDecl, func &ast.Fn, mut n
} else { } else {
comptime_args[k] = ctyp comptime_args[k] = ctyp
} }
} else if mut call_arg.expr is ast.SelectorExpr && call_arg.expr.expr is ast.Ident } else if mut call_arg.expr is ast.SelectorExpr
&& call_arg.expr.expr_type.has_flag(.generic) { && call_arg.expr.expr_type.has_flag(.generic) && call_arg.expr.expr is ast.Ident {
comptime_args[k] = t.typeof_type(call_arg.expr, call_arg.expr.typ) comptime_args[k] = t.typeof_type(call_arg.expr, call_arg.expr.typ)
} }
} }