Skip to content

Commit 36604d5

Browse files
committed
-fix for binding to certain overloaded methods while running under mono (thanks to Geoff Norton at Novell.)
1 parent decf508 commit 36604d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pythonnet/src/runtime/methodbinder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ internal static int GetPrecedence(MethodBase mi) {
162162
int val = mi.IsStatic ? 3000 : 0;
163163
int num = pi.Length;
164164

165+
val += (mi.IsGenericMethod ? 1 : 0);
165166
for (int i = 0; i < num; i++) {
166167
val += ArgPrecedence(pi[i].ParameterType);
167168
}

0 commit comments

Comments
 (0)