[SRE] Rename MonoGenericClass to TypeBuilderInstantiation to match MS. (#3679)
[mono.git] / mcs / mcs / ecore.cs
index edc860eca83b595e90b61975654147dbd691c4e9..2077f26bf2cf99d835fed105bbf4503bfeeae1d5 100644 (file)
@@ -4784,7 +4784,7 @@ namespace Mono.CSharp {
                                // is no better expression conversion
                                //
                                if (candidate_pd.Count < best_pd.Count) {
-                                       if (!candidate_params && !candidate_pd.FixedParameters [j - j].HasDefaultValue) {
+                                       if (!candidate_params && !candidate_pd.FixedParameters [j - 1].HasDefaultValue) {
                                                return true;
                                        }
                                } else if (candidate_pd.Count == best_pd.Count) {