Author: marek
Date: 2008-02-05 10:11:11 -0500 (Tue, 05 Feb 2008)
New Revision: 94889

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

        A fix for bug #325372
        * class.cs: Use generic type comparison when testing method signatures.



Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2008-02-05 14:53:40 UTC (rev 94888)
+++ trunk/mcs/mcs/ChangeLog     2008-02-05 15:11:11 UTC (rev 94889)
@@ -1,5 +1,10 @@
 2008-02-05  Marek Safar  <[EMAIL PROTECTED]>
 
+       A fix for bug #325372
+       * class.cs: Use generic type comparison when testing method signatures.
+
+2008-02-05  Marek Safar  <[EMAIL PROTECTED]>
+
        A fix for bug #357047
        * ecore.cs: Applied C# 3.0 changes to better conversion.
 

Modified: trunk/mcs/mcs/class.cs
===================================================================
--- trunk/mcs/mcs/class.cs      2008-02-05 14:53:40 UTC (rev 94888)
+++ trunk/mcs/mcs/class.cs      2008-02-05 15:11:11 UTC (rev 94889)
@@ -8312,14 +8312,15 @@
                                ReturnType = pi.PropertyType;
                        else
                                return false;
-                       
+
                        //
                        // we use sig.RetType == null to mean `do not check the
                        // method return value.  
                        //
-                       if (sig.RetType != null)
-                               if (ReturnType != sig.RetType)
+                       if (sig.RetType != null) {
+                               if (!TypeManager.IsEqual (ReturnType, 
sig.RetType))
                                        return false;
+                       }
 
                        Type [] args;
                        if (mi != null)

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

Reply via email to