* Binder.cs: default score must be lower than fail_score or we'll get
an ambiguous match when no indexers given and one single match is found.
svn path=/trunk/mcs/; revision=28698
int idxlen = (indexes != null) ? indexes.Length : 0;
PropertyInfo result = null;
int i;
- int best_score = Int32.MaxValue;
+ int best_score = Int32.MaxValue - 1;
int fail_score = Int32.MaxValue;
int level = 0;
if (haveRet && !check_type (p.PropertyType, returnType))
continue;
- int score = Int32.MaxValue;
+ int score = Int32.MaxValue - 1;
if (idxlen > 0) {
score = check_arguments_with_score (indexes, args);
if (score == -1)
+2004-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * Binder.cs: default score must be lower than fail_score or we'll get
+ an ambiguous match when no indexers given and one single match is found.
+
2004-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Binder.cs: removed ^Ms. In case of several properties matching, try