Skip to content

Commit

Permalink
Minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonabreul committed May 14, 2024
1 parent 24a4308 commit 5736d51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/MethodBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5736d51

Please sign in to comment.