Author: raja
Date: 2006-03-23 09:29:14 -0500 (Thu, 23 Mar 2006)
New Revision: 58359
Modified:
trunk/mcs/gmcs/
trunk/mcs/gmcs/ChangeLog
trunk/mcs/gmcs/delegate.cs
Log:
** merged revision 57289 from mcs/
Property changes on: trunk/mcs/gmcs
___________________________________________________________________
Name: gmcs
- Latest GMCS merging status:
- merged everything until r57284 (on 2006-02-25).
- not merging r49122, ie. we're keeping r48609 and r48610; see #75925.
- r37007 will never be merged; it's a mcs-only change.
- r43124 doesn't work in GMCS; not merged yet.
+ Latest GMCS merging status:
- merged everything until r57289 (on 2006-02-25).
- not merging r49122, ie. we're keeping r48609 and r48610; see #75925.
- r37007 will never be merged; it's a mcs-only change.
- r43124 doesn't work in GMCS; not merged yet.
Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog 2006-03-23 14:15:07 UTC (rev 58358)
+++ trunk/mcs/gmcs/ChangeLog 2006-03-23 14:29:14 UTC (rev 58359)
@@ -1,6 +1,10 @@
-2006-03-23 Raja R Harinath <[EMAIL PROTECTED]>
2006-02-25 Marek Safar <[EMAIL PROTECTED]>
+ * delegate.cs (DelegateCreation.ResolveMethodGroupExpr): Don't report
+ error multiple times.
+
+2006-02-25 Marek Safar <[EMAIL PROTECTED]>
+
New partial class implementation.
A fix for #77027, #77029, #77403
@@ -48,6 +52,7 @@
(RootTypes): Started to use this class more often for root types
specializations.
+2006-03-23 Raja R Harinath <[EMAIL PROTECTED]>
* generic.cs (TypeParameter.UpdateConstraints): Update
'constraints' if null.
Modified: trunk/mcs/gmcs/delegate.cs
===================================================================
--- trunk/mcs/gmcs/delegate.cs 2006-03-23 14:15:07 UTC (rev 58358)
+++ trunk/mcs/gmcs/delegate.cs 2006-03-23 14:29:14 UTC (rev 58359)
@@ -762,12 +762,16 @@
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;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches