* delegate.cs (Delegate.DefineType): Report an internal error if
TypeManager.multicast_delegate_type is null. See bug #72015 for
details.
svn path=/trunk/mcs/; revision=39979
+2005-02-02 Martin Baulig <martin@ximian.com>
+
+ * delegate.cs (Delegate.DefineType): Report an internal error if
+ TypeManager.multicast_delegate_type is null. See bug #72015 for
+ details.
+
2005-02-02 Raja R Harinath <rharinath@novell.com>
Fix a crasher in a variant of #31984.
TypeAttributes attr = Modifiers.TypeAttr (ModFlags, IsTopLevel) |
TypeAttributes.Class | TypeAttributes.Sealed;
+ if (TypeManager.multicast_delegate_type == null)
+ Report.Error (-100, loc, "Internal error: delegate used before " +
+ "System.MulticastDelegate is resolved. This can only " +
+ "happen during corlib compilation, when using a delegate " +
+ "in any of the `core' classes. See bug #72015 for details.");
+
if (IsTopLevel) {
if (TypeManager.NamespaceClash (Name, Location))
return null;