From 82383f38885e17bc6da87b56bcfb971af108479d Mon Sep 17 00:00:00 2001 From: Eric Kidd Date: Fri, 27 Oct 2023 10:09:29 -0400 Subject: [PATCH] Fix incorrect error messages --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index 3be1ad8..62c184a 100644 --- a/src/types.rs +++ b/src/types.rs @@ -765,8 +765,8 @@ impl FunctionType { Err(Error::annotated( format!( "arguments {} do not match {}", + DisplayArgTypes(arg_types), self, - DisplayArgTypes(arg_types) ), spanned.span(), "no matching signature found",