Skip to content

Commit 5736d51

Browse files
committed
Minor improvement
1 parent 24a4308 commit 5736d51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtime/MethodBinder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,9 @@ internal Binding Bind(BorrowedReference inst, BorrowedReference args, BorrowedRe
609609
typematch = true;
610610
clrtype = parameter.ParameterType;
611611
}
612-
else
612+
// we won't take matches using implicit conversions if there is already a match
613+
// not using implicit conversions
614+
else if (matches.Count == 0)
613615
{
614616
// accepts non-decimal numbers in decimal parameters
615617
if (underlyingType == typeof(decimal))

0 commit comments

Comments
 (0)