* codegen.cs: Set .NET symbol writer.
* decl.cs: Guard against null generic arguments.
* report.cs: Don't report exactly same additional details.
svn path=/trunk/mcs/; revision=113807
+2008-09-23 Marek Safar <marek.safar@gmail.com>
+
+ * codegen.cs: Set .NET symbol writer.
+
+ * decl.cs: Guard against null generic arguments.
+
+ * report.cs: Don't report exactly same additional details.
+
2008-09-22 Marek Safar <marek.safar@gmail.com>
A fix for bug #324917
// load the default symbol writer.
//
Module.Builder = Assembly.Builder.DefineDynamicModule (
- Basename (name), Basename (output), false);
+ Basename (name), Basename (output), want_debugging_support);
+#if !MS_COMPATIBLE
+ // TODO: This should go into DefineDynamicModule
if (want_debugging_support)
InitializeSymbolWriter (output);
+#endif
return true;
}
//
if (mi != null) {
Type [] cmpGenArgs = TypeManager.GetGenericArguments (mi);
- if (generic_method == null && cmpGenArgs.Length != 0)
+ if (generic_method == null && cmpGenArgs != null && cmpGenArgs.Length != 0)
continue;
- if (generic_method != null && cmpGenArgs.Length != generic_method.TypeParameters.Length)
+ if (generic_method != null && cmpGenArgs != null && cmpGenArgs.Length != generic_method.TypeParameters.Length)
continue;
}
static void SymbolRelatedToPreviousError (string loc, string symbol)
{
- extra_information.Add (String.Format ("{0} (Location of the symbol related to previous ", loc));
+ string msg = String.Format ("{0} (Location of the symbol related to previous ", loc);
+ if (extra_information.Contains (msg))
+ return;
+
+ extra_information.Add (msg);
}
public static void ExtraInformation (Location loc, string msg)