Author: martin
Date: 2006-06-21 16:08:38 -0400 (Wed, 21 Jun 2006)
New Revision: 61914

Added:
   trunk/mcs/tests/test-521.cs
Modified:
   trunk/mcs/gmcs/ChangeLog
   trunk/mcs/gmcs/delegate.cs
Log:
2006-06-21  Martin Baulig  <[EMAIL PROTECTED]>

        * delegate.cs
        (Delegate.VerifyMethod): Allow `params' methods; fixes #78678.



Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog    2006-06-21 18:31:49 UTC (rev 61913)
+++ trunk/mcs/gmcs/ChangeLog    2006-06-21 20:08:38 UTC (rev 61914)
@@ -1,5 +1,10 @@
 2006-06-21  Martin Baulig  <[EMAIL PROTECTED]>
 
+       * delegate.cs
+       (Delegate.VerifyMethod): Allow `params' methods; fixes #78678.
+
+2006-06-21  Martin Baulig  <[EMAIL PROTECTED]>
+
        * expression.cs (Unary.ResolveOperator): In `Operator.AddressOf',
        also report CS1686 for parameters.
 

Modified: trunk/mcs/gmcs/delegate.cs
===================================================================
--- trunk/mcs/gmcs/delegate.cs  2006-06-21 18:31:49 UTC (rev 61913)
+++ trunk/mcs/gmcs/delegate.cs  2006-06-21 20:08:38 UTC (rev 61914)
@@ -402,6 +402,9 @@
                                Parameter.Modifier invoke_pd_type_mod = 
invoke_pd.ParameterModifier (i);
                                Parameter.Modifier pd_type_mod = 
pd.ParameterModifier (i);
 
+                               invoke_pd_type_mod &= 
~Parameter.Modifier.PARAMS;
+                               pd_type_mod &= ~Parameter.Modifier.PARAMS;
+
                                if (invoke_pd_type == pd_type &&
                                    invoke_pd_type_mod == pd_type_mod)
                                        continue;

Added: trunk/mcs/tests/test-521.cs
===================================================================
--- trunk/mcs/tests/test-521.cs 2006-06-21 18:31:49 UTC (rev 61913)
+++ trunk/mcs/tests/test-521.cs 2006-06-21 20:08:38 UTC (rev 61914)
@@ -0,0 +1,13 @@
+using System;
+
+public class Tests {
+
+       public delegate void CallTargetWithContextN (object o, params object[] 
args);
+
+       public static void CallWithContextN (object o, object[] args) {
+       }
+
+       public static void Main () {
+               object o = new CallTargetWithContextN (CallWithContextN);
+       }
+}

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to