From 5736d515224881be79fc8c9289137adbdc08a952 Mon Sep 17 00:00:00 2001 From: Jhonathan Abreu Date: Tue, 14 May 2024 13:57:17 -0400 Subject: [PATCH] Minor improvement --- src/runtime/MethodBinder.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime/MethodBinder.cs b/src/runtime/MethodBinder.cs index c81ef35e4..6ed522fb4 100644 --- a/src/runtime/MethodBinder.cs +++ b/src/runtime/MethodBinder.cs @@ -609,7 +609,9 @@ internal Binding Bind(BorrowedReference inst, BorrowedReference args, BorrowedRe typematch = true; clrtype = parameter.ParameterType; } - else + // we won't take matches using implicit conversions if there is already a match + // not using implicit conversions + else if (matches.Count == 0) { // accepts non-decimal numbers in decimal parameters if (underlyingType == typeof(decimal))