Skip to content

Commit 65ad1b9

Browse files
committed
Minor change
1 parent 5736d51 commit 65ad1b9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/runtime/MethodBinder.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,7 @@ internal Binding Bind(BorrowedReference inst, BorrowedReference args, BorrowedRe
696696
}
697697

698698
var match = new MatchedMethod(kwargsMatched, margs, outs, mi);
699-
// Only add matches using implicit conversion if no other regular matches were found,
700-
// since we favor regular matches over matches using implicit conversion
701-
if (usedImplicitConversion && matches.Count == 0)
699+
if (usedImplicitConversion)
702700
{
703701
if (matchesUsingImplicitConversion == null)
704702
{
@@ -709,7 +707,7 @@ internal Binding Bind(BorrowedReference inst, BorrowedReference args, BorrowedRe
709707
else
710708
{
711709
matches.Add(match);
712-
// We don't need the matches using implicit conversion anymore
710+
// We don't need the matches using implicit conversion anymore, we can free the memory
713711
matchesUsingImplicitConversion = null;
714712
}
715713
}

0 commit comments

Comments
 (0)