Author: marek
Date: 2008-01-24 05:18:06 -0500 (Thu, 24 Jan 2008)
New Revision: 93779

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/class.cs
Log:
2008-01-24  Marek Safar  <[EMAIL PROTECTED]>

        A fix for bug #353986
        * class.cs: Ingore static ctors with parameters for any further checks.
        


Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2008-01-24 10:14:47 UTC (rev 93778)
+++ trunk/mcs/mcs/ChangeLog     2008-01-24 10:18:06 UTC (rev 93779)
@@ -1,5 +1,10 @@
 2008-01-24  Marek Safar  <[EMAIL PROTECTED]>
 
+       A fix for bug #353986
+       * class.cs: Ingore static ctors with parameters for any further checks.
+       
+2008-01-24  Marek Safar  <[EMAIL PROTECTED]>
+
        A fix for bug #354310
        * namespace.cs: Removed redundant check.
 

Modified: trunk/mcs/mcs/class.cs
===================================================================
--- trunk/mcs/mcs/class.cs      2008-01-24 10:14:47 UTC (rev 93778)
+++ trunk/mcs/mcs/class.cs      2008-01-24 10:18:06 UTC (rev 93779)
@@ -558,7 +558,7 @@
                                ConstructorBuilder.ConstructorName : 
ConstructorBuilder.TypeConstructorName))
                                return;
                        
-                       if (is_static){
+                       if (is_static && c.Parameters.Empty){
                                if (default_static_constructor != null) {
                                    Report.SymbolRelatedToPreviousError 
(default_static_constructor);
                                        Report.Error (111, c.Location,

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

Reply via email to