diff --git a/vyper/semantics/analysis/local.py b/vyper/semantics/analysis/local.py index f701e5f4a7..7b9600838e 100644 --- a/vyper/semantics/analysis/local.py +++ b/vyper/semantics/analysis/local.py @@ -627,7 +627,7 @@ def visit_Call(self, node: vy_ast.Call, typ: VyperType) -> None: self.visit(arg, arg_type) else: # builtin functions - arg_types = call_type.infer_arg_types(node, typ) + arg_types = call_type.infer_arg_types(node, expected_return_typ=typ) # `infer_arg_types` already calls `validate_expected_type` for arg, arg_type in zip(node.args, arg_types): self.visit(arg, arg_type)