-2006-03-23 Raja R Harinath <rharinath@novell.com>
+2006-02-25 Marek Safar <marek.safar@seznam.cz>
+
+ * delegate.cs (DelegateCreation.ResolveMethodGroupExpr): Don't report
+ error multiple times.
+
2006-02-25 Marek Safar <marek.safar@seznam.cz>
New partial class implementation.
(RootTypes): Started to use this class more often for root types
specializations.
+2006-03-23 Raja R Harinath <rharinath@novell.com>
* generic.cs (TypeParameter.UpdateConstraints): Update
'constraints' if null.
IMethodData md = TypeManager.GetMethod (delegate_method);
if (md == null) {
if (System.Attribute.GetCustomAttribute (delegate_method, TypeManager.conditional_attribute_type) != null) {
+ Report.SymbolRelatedToPreviousError (delegate_method);
Report.Error (1618, loc, "Cannot create delegate with `{0}' because it has a Conditional attribute", TypeManager.CSharpSignature (delegate_method));
+ return null;
}
} else {
md.SetMemberIsUsed ();
if (md.OptAttributes != null && md.OptAttributes.Search (TypeManager.conditional_attribute_type) != null) {
+ Report.SymbolRelatedToPreviousError (delegate_method);
Report.Error (1618, loc, "Cannot create delegate with `{0}' because it has a Conditional attribute", TypeManager.CSharpSignature (delegate_method));
+ return null;
}
}