Author: raja
Date: 2006-01-29 10:08:01 -0500 (Sun, 29 Jan 2006)
New Revision: 56226

Modified:
   trunk/mcs/gmcs/ChangeLog
   trunk/mcs/gmcs/generic.cs
Log:
Fix part of #77397
* generic.cs (TypeManager.IsByRef): Handle pass-by-ref types.


Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog    2006-01-29 13:47:15 UTC (rev 56225)
+++ trunk/mcs/gmcs/ChangeLog    2006-01-29 15:08:01 UTC (rev 56226)
@@ -1,3 +1,8 @@
+2006-01-29  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       Fix part of #77397
+       * generic.cs (TypeManager.IsByRef): Handle pass-by-ref types.
+
 2006-01-28  Raja R Harinath  <[EMAIL PROTECTED]>
 
        * typemanager.cs (GenericParameterPosition): New.

Modified: trunk/mcs/gmcs/generic.cs
===================================================================
--- trunk/mcs/gmcs/generic.cs   2006-01-29 13:47:15 UTC (rev 56225)
+++ trunk/mcs/gmcs/generic.cs   2006-01-29 15:08:01 UTC (rev 56226)
@@ -2075,6 +2075,9 @@
                                return IsEqual (a.GetElementType (), 
b.GetElementType ());
                        }
 
+                       if (a.IsByRef && b.IsByRef)
+                               return IsEqual (a.GetElementType (), 
b.GetElementType ());
+
                        if (a.IsGenericType && b.IsGenericType) {
                                if (a.GetGenericTypeDefinition () != 
b.GetGenericTypeDefinition ())
                                        return false;

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

Reply via email to